hondaya14 opened a new pull request, #8911:
URL: https://github.com/apache/hbase/pull/8911

   ## Jira
   https://issues.apache.org/jira/browse/HBASE-30554
   
   ## Background
   Multiple threads can pass the check before any of them set running to true. 
While synchronization prevents concurrent execution of HbckChore, it doesn't 
prevent redundant sequential scans. A competing callers block until the current 
scan finishes.
   
   Concurrent requests should be rejected (return false) instead of blocking 
until current scan finishes and then starting another scan.
   
   ## Changes
   
   - Unify scheduled and manual HbckChore execution behind an atomic guard so 
overlapping requests return `false` immediately instead of triggering redundant 
sequential scans.
   - Clear the running state in a finally block to allow subsequent executions 
after failures
   - Add regression tests for concurrent requests, the check-then-act race, and 
subsequent execution after a metrics update failure.


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

Reply via email to