{"record":{"id":"0769769b321d56f3","repo":"apache/flink","slug":"interrupted-while-acquiring-lock","errorCode":null,"errorMessage":"Interrupted while acquiring lock","messagePattern":"Interrupted while acquiring lock","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/NativeS3InputStream.java","lineNumber":348,"sourceCode":"            long remaining = contentLength - nextReadPos;\n            int toRead = (int) Math.min(len, remaining);\n            int bytesRead = bufferedStream.read(b, off, toRead);\n            if (bytesRead > 0) {\n                nextReadPos += bytesRead;\n                streamPos += bytesRead;\n            }\n            return bytesRead;\n        } finally {\n            lock.unlock();\n        }\n    }\n\n    private void lock() throws IOException {\n        try {\n            lock.lockInterruptibly();\n        } catch (InterruptedException e) {\n            Thread.currentThread().interrupt();\n            throw new IOException(\"Interrupted while acquiring lock\", e);\n        }\n    }\n\n    @Override\n    public void close() throws IOException {\n        lock.lock();\n        try {\n            if (closed) {\n                return;\n            }\n\n            closed = true;\n\n            IOException exception = releaseStreams();\n\n            LOG.debug(\n                    \"Closed S3 input stream - bucket: {}, key: {}, final position: {}/{}\",\n                    bucketName,","sourceCodeStart":330,"sourceCodeEnd":366,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/NativeS3InputStream.java#L330-L366","documentation":"Error \"Interrupted while acquiring lock\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: Interrupted while acquiring lock.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: Interrupted while acquiring lock.","solutions":["Address the cause reported by the error message: Interrupted while acquiring lock","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"Interrupted while acquiring lock\") 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"}