@Override public void abort(String reason, Throwable cause) { if (isAborted() || isStopped()) { return; } if (cpHost != null) { // HBASE-4014: dump a list of loaded coprocessors. LOG.error(HBaseMarkers.FATAL, "Master server abort: loaded coprocessors are: " + getLoadedCoprocessors()); } String msg = "***** ABORTING master " + this + ": " + reason + " *****"; if (cause != null) { LOG.error(HBaseMarkers.FATAL, msg, cause); } else { LOG.error(HBaseMarkers.FATAL, msg); } try { stopMaster(); } catch (IOException e) { LOG.error("Exception occurred while stopping master", e); } }
assertTrue(HMaster.getLoadedCoprocessors().contains(coprocessorName)); masterTracker.masterZKNodeWasDeleted); String loadedCoprocessors = HMaster.getLoadedCoprocessors(); assertTrue(loadedCoprocessors.contains(coprocessorName));
assertTrue(HMaster.getLoadedCoprocessors(). contains(TestMasterCoprocessorExceptionWithAbort.BuggyMasterObserver.class.getName()));
@Override public void abort(final String msg, final Throwable t) { if (cpHost != null) { // HBASE-4014: dump a list of loaded coprocessors. LOG.fatal("Master server abort: loaded coprocessors are: " + getLoadedCoprocessors()); } if (abortNow(msg, t)) { if (t != null) LOG.fatal(msg, t); else LOG.fatal(msg); this.abort = true; stop("Aborting"); } }
@Override public void abort(final String msg, final Throwable t) { if (isAborted() || isStopped()) { return; } if (cpHost != null) { // HBASE-4014: dump a list of loaded coprocessors. LOG.fatal("Master server abort: loaded coprocessors are: " + getLoadedCoprocessors()); } if (t != null) LOG.fatal(msg, t); stop(msg); }
assertTrue(HMaster.getLoadedCoprocessors().contains(coprocessorName)); masterTracker.masterZKNodeWasDeleted); String loadedCoprocessors = HMaster.getLoadedCoprocessors(); assertTrue(loadedCoprocessors.contains(coprocessorName));
assertTrue(HMaster.getLoadedCoprocessors(). contains(TestMasterCoprocessorExceptionWithAbort.BuggyMasterObserver.class.getName()));