@Override protected void handleException(Throwable t) { LOG.warn("Fatal error occured while closing region {}, aborting...", encodedName, t); getServer().abort("Failed to close region " + encodedName + " and can not recover", t); }
@Override protected void handleException(Throwable t) { LOG.warn("Fatal error occured while opening region {}, aborting...", regionInfo.getRegionNameAsString(), t); getServer().abort( "Failed to open region " + regionInfo.getRegionNameAsString() + " and can not recover", t); }
@Override protected void writeRegionOpenMarker(WAL wal, long openSeqId) throws IOException { if (getRegionInfo().getTable().equals(TABLE_NAME) && FAILED_OPEN.get() > 0) { FAILED_OPEN.decrementAndGet(); rsServices.abort("for testing", new Exception("Inject error for testing")); throw new IOException("Inject error for testing"); } } }
@Override public void prePut(ObserverContext<RegionCoprocessorEnvironment> c, Put put, WALEdit edit, Durability durability) throws IOException { if (put.getAttribute(DO_ABORT) != null) { // TODO: Change this so it throws a CP Abort Exception instead. RegionServerServices rss = ((HasRegionServerServices)c.getEnvironment()).getRegionServerServices(); String str = "Aborting for test"; LOG.info(str + " " + rss.getServerName()); rss.abort(str, new Throwable(str)); } }
this.rsServices.abort("Failed to write bulk load event into WAL.", ioe);
if (!(abort || mss.getDataSize() == 0 || writestate.readOnly)) { if (getRegionServerServices() != null) { getRegionServerServices().abort("Assertion failed while closing store " + getRegionInfo().getRegionNameAsString() + " " + store + ". flushableSize expected=0, actual={" + mss
rsServices.abort("Replay of WAL required. Forcing server shutdown", dse);
if (errormsg != null) { IOException ioe = new IOException(errormsg); env.getRegionServerServices().abort(errormsg, ioe); throw ioe;
Mockito.verify(mockRS, Mockito.times(1)).abort(Mockito.anyString(), Mockito.any(Exception.class)); region.close(true);
@Override protected void writeRegionOpenMarker(WAL wal, long openSeqId) throws IOException { if (getRegionInfo().getTable().equals(TABLE_NAME) && FAILED_OPEN.get() > 0) { FAILED_OPEN.decrementAndGet(); rsServices.abort("for testing", new Exception("Inject error for testing")); throw new IOException("Inject error for testing"); } } }
@Override public void prePut(ObserverContext<RegionCoprocessorEnvironment> c, Put put, WALEdit edit, Durability durability) throws IOException { if (put.getAttribute(DO_ABORT) != null) { // TODO: Change this so it throws a CP Abort Exception instead. RegionServerServices rss = ((HasRegionServerServices)c.getEnvironment()).getRegionServerServices(); String str = "Aborting for test"; LOG.info(str + " " + rss.getServerName()); rss.abort(str, new Throwable(str)); } }
this.rsServices.abort("Failed to write bulk load event into WAL.", ioe);
if (!(abort || flushableSize == 0 || writestate.readOnly)) { if (getRegionServerServices() != null) { getRegionServerServices().abort("Assertion failed while closing store " + getRegionInfo().getRegionNameAsString() + " " + store + ". flushableSize expected=0, actual= " + flushableSize
rsServices.abort("Replay of WAL required. Forcing server shutdown", dse);