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

   ## What changes were proposed in this pull request?
   Adds mock-based unit tests for the `RatisBlockOutputStream` and 
`KeyOutputStream`, mirroring the existing DataStream coverage introduced by 
#10230.
   
   - `MockRatisPipeline`: stateful harness that simulates a Ratis pipeline for 
`RatisBlockOutputStream`. Records WriteChunk/PutBlock/watchForCommit, supports 
failure injection.
   - `TestRatisBlockOutputStream`: adds 14 block-level tests covering 
write+close, flush, hsync, putBlock failure, watchForCommit failure, 
writeOnRetry, and data integrity.
   - `TestKeyOutputStream`: adds 7 key-level tests for commit on close, 
cross-block allocation, hsync-to-OM, container-close retry, multiple hsyncs, 
and write-after-close rejection. Existing concurrency/pool tests are unchanged.
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-16266
   
   ## How was this patch tested?
   All the added unit tests pass.


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