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

   ## What changes were proposed in this pull request?
   
   Since HDDS-9844, writes on a single key are allowed to be interleaved 
outside the critical section. This PR aims to add a config to be able to 
restore the strictly serialized behavior before HDDS-9844 is merged as a safety 
measure.
   
   ```
   ozone.client.key.write.concurrency
   
   Maximum concurrent writes allowed on each key.
   Defaults to 1 which matches the behavior before HDDS-9844.
   For unlimited write concurrency, set this to -1 or any negative integer 
value.
   ```
   
   ### TODO
   
   - [ ] Check if other test cases like `TestHSync` would need the 
`ozone.client.key.write.concurrency` set to unlimited.
   - [ ] Could add more `TestKeyOutputStream` test cases around `flush()` and 
other write ops.
   - [ ] Could add `TestKeyOutputStreamSemaphore`.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-11184
   
   ## How was this patch tested?
   
   - Added 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: [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