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

   ## What changes were proposed in this pull request?
   
   Introduced a new flush thread in ECKeyOutputStream, pipelining the encode 
stage and flush stage.
   The producer thread does the buffering and encoding, and the consumer thread 
does the flushing.
   They are connected by a `ArrayBlockingQueue`, whose size is 
`"ec.stripe.queue.size"`, which defaults to 2.
   Necessary refactors has been done to seperate the two stages.
   
   `EOFDummyStripe` is used to denote the end of the key, 
`CheckpointDummyStripe` is used for syncing in tests.
   Synchronization was added in tests.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-6615
   
   ## How was this patch tested?
   
   It's covered by existing test. Synchronization was added before checking 
state.
   Mannual test of writing 1 key by freon shows ~20% performance improvement.


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