PDGGK opened a new pull request, #37681: URL: https://github.com/apache/beam/pull/37681
## Summary - Convert manual resource close to `try-with-resources` in `identityOrGcsToLocalFile` to prevent leaking `ReadableByteChannel`, `FileOutputStream`, and `WritableByteChannel` when an `IOException` occurs during the copy loop - Preserve the original `IOException` as the cause of the `IllegalArgumentException` for easier debugging Fixes #37680 ## Test plan - [x] Existing KafkaIO tests pass (`compileJava` and `spotlessApply` verified) - [ ] CI precommit checks -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
