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

   ## What changes were proposed in this pull request?
   
   When a client commits PutBlock through the data stream instead of the Raft 
log, which opens the stream with `StreamInitWithPutBlock`, DN itself executes 
two kinds of PutBlock received on the stream:
   
   1.  PutBlocks sent as a stream command in the middle of the stream
   2.  the PutBlock at the end of the stream, executed when the stream is closed
   
   Neither path checked that the PutBlock is for the block the stream was 
opened for. A PutBlock at stream close for a different block can still be 
committed, which is of course wrong.
   
   We can then at least do an extra verification before dispatching to compare 
the stream init block information with the PutBlock to ensure a match.
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-17751
   
   ## How was this patch tested?
   
   Unit tests
   


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

Reply via email to