{"record":{"id":"499b150b1f8c4b47","repo":"apache/flink","slug":"s3-entropy-length-must-be-0","errorCode":null,"errorMessage":"s3.entropy.length must be > 0","messagePattern":"s3\\.entropy\\.length must be > 0","errorType":"validation","errorClass":"IllegalConfigurationException","httpStatus":null,"severity":"error","filePath":"flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/NativeS3FileSystemFactory.java","lineNumber":490,"sourceCode":"        }\n\n        S3EncryptionConfig encryptionConfig =\n                S3EncryptionConfig.fromConfig(\n                        sseType,\n                        sseKmsKeyId,\n                        config.getOptional(SSE_KMS_ENCRYPTION_CONTEXT)\n                                .orElse(Collections.emptyMap()));\n\n        String entropyInjectionKey = config.get(ENTROPY_INJECT_KEY_OPTION);\n        int numEntropyChars = -1;\n        if (entropyInjectionKey != null) {\n            if (entropyInjectionKey.matches(INVALID_ENTROPY_KEY_CHARS)) {\n                throw new IllegalConfigurationException(\n                        \"Invalid character in entropy injection key: \" + entropyInjectionKey);\n            }\n            numEntropyChars = config.get(ENTROPY_INJECT_LENGTH_OPTION);\n            if (numEntropyChars <= 0) {\n                throw new IllegalConfigurationException(\n                        ENTROPY_INJECT_LENGTH_OPTION.key() + \" must be > 0\");\n            }\n        }\n\n        final String[] localTmpDirectories = ConfigurationUtils.parseTempDirectories(config);\n        Preconditions.checkArgument(\n                localTmpDirectories.length > 0,\n                \"No temporary directories configured. \"\n                        + \"Please configure at least one temp directory via 'io.tmp.dirs' or similar.\");\n        final String localTmpDirectory = localTmpDirectories[0];\n\n        final long s3minPartSize = config.get(PART_UPLOAD_MIN_SIZE);\n        final int maxConcurrentUploads = config.get(MAX_CONCURRENT_UPLOADS);\n\n        // Validate part size: S3 requires minimum 5MB and maximum 5GB per part\n        Preconditions.checkArgument(\n                s3minPartSize >= S3_MULTIPART_MIN_PART_SIZE,\n                \"%s must be at least 5MB (5242880 bytes), but was %s bytes\",","sourceCodeStart":472,"sourceCodeEnd":508,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/NativeS3FileSystemFactory.java#L472-L508","documentation":"Error \"s3.entropy.length must be > 0\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: s3.entropy.length must be > 0.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: s3.entropy.length must be > 0.","solutions":["Address the cause reported by the error message: s3.entropy.length must be > 0","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"s3.entropy.length must be > 0\") and rerun the job or command.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2f3c205e9266cb30240eb7f4fdab15cad629a70f","analyzedAt":"2026-08-14T08:48:24.518Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}