hanishakoneru commented on pull request #1685:
URL: https://github.com/apache/ozone/pull/1685#issuecomment-743514672


   Moved the read error handling by refreshing pipeline from BlockInput to 
ChunkInputStream. 
   Let's say ChunkInputStream already has 1MB of data in its buffers when the 
DNs in the pipeline shutdown. If client tries to read 2MB from this 
ChunkInputStream, then it can read 1MB from the existing buffers and gets 
StorageContainerException when trying to read the next 1MB of data from the DN. 
In this case, the first 1MB which was already read will be discarded by 
BlockInputStream. But the ChunkInputStream would have advanced its position to 
1MB and will start reading from offset 1MB instead of 0 after acquiring new 
client.
   
   cc. @adoroszlai 


----------------------------------------------------------------
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to