chungen0126 opened a new pull request, #6821:
URL: https://github.com/apache/ozone/pull/6821

   ## What changes were proposed in this pull request?
   Reading data before the follower state machine hasn't finished applying log 
gets wrong `BlockData`.
   The BlockInputStream reads data from one of the datanodes in the pipeline. 
If the BlockInputStream read data from follower before the statemachine 
finished updating, the data may be incorrect.
   Therefore, I make the BlockInputStream read data from leader first.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-8942
   
   ## How was this patch tested?
   
   Run `TestHSync` for 20*10 times:
   https://github.com/chungen0126/ozone/actions/runs/9532695490
   


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

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


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

Reply via email to