HBASE-22354 master never sets abortRequested, and thus abort timeout doesn't work for it
Signed-off-by: Peter Somogyi <psomogyi@apache.org>
This commit is contained in:
parent
401cae4016
commit
703da6ffbc
@ -2934,6 +2934,7 @@ public class HMaster extends HRegionServer implements MasterServices {
|
||||
if (isAborted() || isStopped()) {
|
||||
return;
|
||||
}
|
||||
setAbortRequested();
|
||||
if (cpHost != null) {
|
||||
// HBASE-4014: dump a list of loaded coprocessors.
|
||||
LOG.error(HBaseMarkers.FATAL, "Master server abort: loaded coprocessors are: " +
|
||||
|
@ -2389,7 +2389,7 @@ public class HRegionServer extends HasThread implements
|
||||
} else {
|
||||
LOG.error(HBaseMarkers.FATAL, msg);
|
||||
}
|
||||
this.abortRequested = true;
|
||||
setAbortRequested();
|
||||
// HBASE-4014: show list of coprocessors that were loaded to help debug
|
||||
// regionserver crashes.Note that we're implicitly using
|
||||
// java.util.HashSet's toString() method to print the coprocessor names.
|
||||
@ -2423,6 +2423,10 @@ public class HRegionServer extends HasThread implements
|
||||
stop(reason, true, null);
|
||||
}
|
||||
|
||||
protected final void setAbortRequested() {
|
||||
this.abortRequested = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see HRegionServer#abort(String, Throwable)
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user