@Override public void stop(String reason) { LOG.info("Stopping due to: "+reason); this.stopped = true; sleeper.skipSleepCycle(); }
@Override public void abort(String reason, Throwable error) { LOG.error(HBaseMarkers.FATAL, "Aborting on: "+reason, error); this.aborted = true; this.stopped = true; sleeper.skipSleepCycle(); }
/** * Stops the regionserver. * @param msg Status message * @param force True if this is a regionserver abort * @param user The user executing the stop request, or null if no user is associated */ public void stop(final String msg, final boolean force, final User user) { if (!this.stopped) { LOG.info("***** STOPPING region server '" + this + "' *****"); if (this.rsHost != null) { // when forced via abort don't allow CPs to override try { this.rsHost.preStop(msg, user); } catch (IOException ioe) { if (!force) { LOG.warn("The region server did not stop", ioe); return; } LOG.warn("Skipping coprocessor exception on preStop() due to forced shutdown", ioe); } } this.stopped = true; LOG.info("STOPPED: " + msg); // Wakes run() if it is sleeping sleeper.skipSleepCycle(); } }
"Region server startup failed"); } finally { sleeper.skipSleepCycle();
sleeper.skipSleepCycle();
/** * If the thread is currently sleeping, trigger the core to happen immediately. * If it's in the middle of its operation, will begin another operation * immediately after finishing this one. */ public void triggerNow() { this.sleeper.skipSleepCycle(); }
@Override public void stop(String reason) { this.stopped = true; LOG.info("STOPPED: " + reason); // Wakes run() if it is sleeping sleeper.skipSleepCycle(); }
@Override public void stop(final String why) { LOG.info(why); this.stopped = true; // We wake up the stopSleeper to stop immediately stopSleeper.skipSleepCycle(); // If we are a backup master, we need to interrupt wait if (this.activeMasterManager != null) { synchronized (this.activeMasterManager.clusterHasActiveMaster) { this.activeMasterManager.clusterHasActiveMaster.notifyAll(); } } }
@Override public void stop(final String why) { LOG.info(why); this.stopped = true; // We wake up the stopSleeper to stop immediately stopSleeper.skipSleepCycle(); // If we are a backup master, we need to interrupt wait if (this.activeMasterManager != null) { synchronized (this.activeMasterManager.clusterHasActiveMaster) { this.activeMasterManager.clusterHasActiveMaster.notifyAll(); } } }
@Override public void stop(final String msg) { try { this.rsHost.preStop(msg); this.stopped = true; LOG.info("STOPPED: " + msg); // Wakes run() if it is sleeping sleeper.skipSleepCycle(); } catch (IOException exp) { LOG.warn("The region server did not stop", exp); } }
@Override public void stop(String reason) { LOG.info("Stopping due to: "+reason); this.stopped = true; sleeper.skipSleepCycle(); }
@Override public void abort(String reason, Throwable error) { LOG.error(HBaseMarkers.FATAL, "Aborting on: "+reason, error); this.aborted = true; this.stopped = true; sleeper.skipSleepCycle(); }
@Override public void stop(final String msg) { if (!this.stopped) { try { if (this.rsHost != null) { this.rsHost.preStop(msg); } this.stopped = true; LOG.info("STOPPED: " + msg); // Wakes run() if it is sleeping sleeper.skipSleepCycle(); } catch (IOException exp) { LOG.warn("The region server did not stop", exp); } } }
"Region server startup failed"); } finally { sleeper.skipSleepCycle();
"FServer startup failed"); } finally { sleeper.skipSleepCycle();
"Region server startup failed"); } finally { sleeper.skipSleepCycle();