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

   ## What changes were proposed in this pull request?
   
   `populate-cache` failed with `Text file busy` after HDDS-17950 added `-T 
1C`. `proto-backwards-compatibility` writes the protolock binary and runs it 
right away. If another thread starts a process at that moment, the child can 
briefly hold the file open, so exec fails.
   
   This PR extracts protolock in the `initialize` phase for modules with 
`proto.lock`. The plugin skips writing the binary if it already exists.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-17952
   
   ## How was this patch tested?
   
   Repeated `clean verify -T 1C` of the 4 interface modules on fork runners:
   
   | | Runs | `Text file busy` |
   |--------|--------|-------|
   | before | 150 | 1 
([run](https://github.com/chihsuan/ozone/actions/runs/46344900192)) |
   | after | 300 | 0 
([run](https://github.com/chihsuan/ozone/actions/runs/46348912064)) |
   
   Also checked locally that it works with an empty Maven repo.
   
   CI: 
[build-branch](https://github.com/chihsuan/ozone/actions/runs/46351357654).
   
   PR description generated by Claude Code (Claude Opus 5.5).
   


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