snvijaya opened a new pull request, #5133:
URL: https://github.com/apache/hadoop/pull/5133

   A ReadBuffer with a valid Buffer assigned to it can be in certain states 
when stream is closed, and with the above change, I am trying to address it as 
below :
   1. Is in QueueReadAheadList - No change, the earlier purge takes care of it
   2. Is in CompletedList - No change again, the earlier purge takes care of it
   3. Is InProgressList but yet to make the network call - If stream is closed, 
stop network call and move the ReadBuffer as a failure into completed list
   4. Is InProgressList , just finished the network call - If stream is closed, 
network call was successful or not, move the ReadBuffer as a failure into 
completed list
   
   Now, when in state 3 or 4, the purge method might not pick it as it might 
have executed first. In that case, to prioritize these ReadBuffers for 
eviction, have added the check for stream is closed in the eviction code as 
well. 


-- 
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: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to