raghavyadav01 opened a new pull request, #20362:
URL: https://github.com/apache/pinot/pull/20362

   `BaseTableDataManager.releaseAndRemoveAllSegments` waits up to 10 minutes 
for the segment offloads. If the calling thread was interrupted, 
`awaitTermination` threw immediately and `shutdownNow()` dropped the queued 
offloads and interrupted the running ones. A consuming segment could then keep 
running after its table data manager was gone.
   
   It now keeps waiting, within the same 10 minute limit, and restores the 
interrupt flag once the offloads are done.
   
   Raised in the review of #20214, where the tracker shutdown can leave the 
interrupt set for this method.
   
   Added `testReleaseAndRemoveAllSegmentsFinishesOffloadsWhenInterrupted`. 
`BaseTableDataManagerTest` passes, and spotless and checkstyle are clean on 
`pinot-core`.


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