adoroszlai opened a new pull request #1454:
URL: https://github.com/apache/hadoop-ozone/pull/1454


   ## What changes were proposed in this pull request?
   
   Reduce the number of `getCurrentUser()` and `getTokens()` calls performed 
during some `ContainerProtocolCalls` operations.  This is achieved by getting 
the tokens once in `BlockInputStream` and `BlockOutputStream` initialization, 
and passing them to `getBlock`, `putBlock`, `readChunk`, `writeChunk` calls.
   
   https://issues.apache.org/jira/browse/HDDS-4285
   
   ## How was this patch tested?
   
   Verified that time required for the repro unit test is improved.
   
   Without the patch:
   
   ```
   [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
112.829 s - in org.apache.hadoop.ozone.client.io.TestKeyOutputStreamUnit
   ```
   
   With the patch:
   
   ```
   [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
30.293 s - in org.apache.hadoop.ozone.client.io.TestKeyOutputStreamUnit
   ```
   
   Regular CI:
   https://github.com/adoroszlai/hadoop-ozone/runs/1181129921


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

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



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

Reply via email to