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

   ### Description of PR
   
   1. BlockIteratorImpl#getSubdirEntries sorts by strings, meaning subdir29 
comes before subdir4, which can result in a bigger block id being listed before 
a smaller block id
   2. If block cleanup happens before state.curEntry is reset to null, stale 
data can carry over into the next loop
   3. Search for a bigger ID than the range in nextSorted(entries, 
state.curEntry) -> null -> subdir is skipped.
   
   Usually happens during DiskBalancer operations.
   
   
   ### How was this patch tested?
   
   UT


-- 
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