bharathv opened a new pull request #1401: HBASE-24075: Fix a race between 
master shutdown and metrics (re)init
URL: https://github.com/apache/hbase/pull/1401
 
 
   JMXCacheBuster resets the metrics state at various points in time. These
   events can potentially race with a master shutdown. When the master is
   tearing down, metrics initialization can touch a lot of unsafe state,
   for example invalidated FS objects. To avoid this, this patch makes
   the getMetrics() a no-op when the master is either stopped or in the
   process of shutting down. Additionally, getClusterId() when the server
   is shutting down is made a no-op.
   
   Simulating a test for this is a bit tricky but with the patch I don't
   locally see the long stacktraces from the jira.
   
   Signed-off-by: Michael Stack <[email protected]>
   (cherry picked from commit 6f213e9d5a15afcc40b6562ab4898f913cec91eb)

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to