openinx opened a new pull request, #18881: URL: https://github.com/apache/iceberg/pull/18881
Reusing a GCS read destination array at an offset beyond the previous read's limit throws IllegalArgumentException even when the new range is valid. Set the buffer limit before its position so successive reads can use different ranges. Test plan: Read into the same array at a higher offset and then a smaller range, checking bytes and stream position. The regression failed before the fix; all 96 GCP unit tests, module build, formatting, and checkstyle passed. --- **AI Disclosure** - Model: GPT-6 - Platform/Tool: Codex desktop - Human Oversight: reviewed - Prompt Summary: Generated the GCS buffer reuse fix and regression test; the author confirmed the bug and requested upstream submission. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
