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

   ## What changes were proposed in this pull request?
   
   `PeriodicalTask` runs in `BackgroundService`'s executor, and wants to lock 
`BackgroundService` before spawning background tasks.  
`BackgroundService.shutdown` should not `awaitTermination` of the executor 
while holding the same lock: if shutdown is initiated while the task is before 
the critical section, the task cannot complete, causing `awaitTermination` to 
timeout after 1 minute.
   
   https://issues.apache.org/jira/browse/HDDS-14645
   
   ## How was this patch tested?
   
   
[Before](https://github.com/apache/ozone/actions/runs/26552539640/job/78218987427#step:13:2712):
   
   ```
   Tests run: 72, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 325.3 s -- 
in org.apache.hadoop.ozone.container.common.TestBlockDeletingService
   ```
   
   
[After](https://github.com/adoroszlai/ozone/actions/runs/26556849091/job/78231632571#step:13:2708):
   
   ```
   Tests run: 72, Failures: 0, Errors: 0, Skipped: 4, Time elapsed: 25.42 s -- 
in org.apache.hadoop.ozone.container.common.TestBlockDeletingService
   ```
   
   https://github.com/adoroszlai/ozone/actions/runs/26556849091


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