ss77892 opened a new pull request, #12159: URL: https://github.com/apache/ozone/pull/12159
## What changes were proposed in this pull request? if a streaming read from a datanode times out, the client switches to another datanode. But it does not really stop the old read. The old datanode keeps working on it and later sends data that nobody needs. How it's fixed: when a streaming read fails, the client now cancels it, so the old datanode stops right away. A read that finishes normally is closed the same way as before. Also, the client no longer logs a false warning when the cancelled read reports back. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-17873 ## How was this patch tested? - New unit tests in `TestStreamBlockInputStream`: - a stream abandoned after a stream-ready timeout is cancelled, not half-closed (`read` and `readPositioned`); - the `CANCELLED` status after a failure is not logged as an error. - New `TestStreamBlockInputStreamStalledDatanode`: runs a real gRPC server whose first ReadBlock call stalls. It checks that the failover cancels the stalled call and that the datanode does not send its late reply. -- 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]
