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

   ## What changes were proposed in this pull request?
   
   Block files are not closed in `PutBlock`, because client does not set `size` 
in `BlockData` (it is calculated by the DN, so we could use that, though).  
Let's use the list of chunks to decide if `finishWriteChunks` should be called 
or not.
   
   https://issues.apache.org/jira/browse/HDDS-7034
   
   ## How was this patch tested?
   
   ```
   $ sudo yum install -y lsof
   ...
   Installed:
     lsof.x86_64 0:4.87-6.el7
   
   $ ozone freon ockg -n100 -s10
   ...
   Successful executions: 100
   
   $ lsof -u hadoop | grep '/chunks/' | wc -l
   0
   ```
   
   Existing tests cover functionality.
   
   Regular CI:
   https://github.com/adoroszlai/hadoop-ozone/actions/runs/2717806549


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