wj1918 opened a new pull request #8612: URL: https://github.com/apache/kafka/pull/8612
1. Trigger buffer expansion when buffer does not extract a line 2. Limit buffer size to Integer.MAX_VALUE 3. Using single loop inside FileStreamSourceTask.poll 4. Close the stream before throw ConnectException 5. Move stream and buffer related function to a separate class FileStreamBuffer Check the JIRA comment for the steps to verify. ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org