{"record":{"id":"3efd4f1a4f73087e","repo":"apache/flink","slug":"inconsistent-result-for-object-s-conflicting-len","errorCode":null,"errorMessage":"Inconsistent result for object %s: conflicting lengths. Recovered committer for upload %s indicates %s bytes, present object is %s bytes","messagePattern":"Inconsistent result for object (.+?): conflicting lengths\\. Recovered committer for upload (.+?) indicates (.+?) bytes, present object is (.+?) bytes","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"flink-filesystems/flink-s3-fs-base/src/main/java/org/apache/flink/fs/s3/common/writer/S3Committer.java","lineNumber":115,"sourceCode":"                        \"Failed to commit after recovery {} with MPU ID {}. \"\n                                + \"Checking if file was committed before...\",\n                        objectName,\n                        uploadId);\n                LOG.trace(\"Exception when committing:\", e);\n\n                try {\n                    ObjectMetadata metadata = s3AccessHelper.getObjectMetadata(objectName);\n                    if (totalLength != metadata.getContentLength()) {\n                        String message =\n                                String.format(\n                                        \"Inconsistent result for object %s: conflicting lengths. \"\n                                                + \"Recovered committer for upload %s indicates %s bytes, present object is %s bytes\",\n                                        objectName,\n                                        uploadId,\n                                        totalLength,\n                                        metadata.getContentLength());\n                        LOG.warn(message);\n                        throw new IOException(message, e);\n                    }\n                } catch (FileNotFoundException fnf) {\n                    LOG.warn(\n                            \"Object {} not existing after failed recovery commit with MPU ID {}\",\n                            objectName,\n                            uploadId);\n                    throw new IOException(\n                            String.format(\n                                    \"Recovering commit failed for object %s. \"\n                                            + \"Object does not exist and MultiPart Upload %s is not valid.\",\n                                    objectName, uploadId),\n                            e);\n                }\n            }\n        } else {\n            LOG.debug(\"No data to commit for file: {}\", objectName);\n        }\n    }","sourceCodeStart":97,"sourceCodeEnd":133,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-filesystems/flink-s3-fs-base/src/main/java/org/apache/flink/fs/s3/common/writer/S3Committer.java#L97-L133","documentation":"Error \"Inconsistent result for object %s: conflicting lengths. Recovered committer for upload %s indicates %s bytes, present object is %s bytes\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: Inconsistent result for object the reported value: conflicting lengths. Recovered committer for upload the reported value indicates the reported value bytes, present object is the reported value bytes.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: Inconsistent result for object the reported value: conflicting lengths. Recovered committer for upload the reported value indicates the reported value bytes, present object is the reported value bytes.","solutions":["Address the cause reported by the error message: Inconsistent result for object the reported value: conflicting lengths. Recovered committer for upload the reported value indicates the reported value bytes, present object is the reported value bytes","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"Inconsistent result for object the reported value: conflicting lengths. Recovered committer for upload the reported value indicates the reported value bytes, present object is the reported value bytes\") 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"}