boolean enableScoreboard ( ) { assert ( s_barrier != null ) ; try { s_barrier . await ( 3L , TimeUnit . MINUTES ) ; } catch ( InterruptedException | BrokenBarrierException | TimeoutException e ) { hostLog . error ( "Cannot re-enable the scoreboard." ) ; s_barrier . reset ( ) ; return false ; } m_scoreboardEnabled = true ; if ( hostLog . isDebugEnabled ( ) ) { hostLog . debug ( "Scoreboard has been enabled." ) ; } return true ; }
After all sites has been fully initialized and ready for snapshot we should enable the scoreboard .