Skip to content

Commit

Permalink
HBASE-22354 master never sets abortRequested, and thus abort timeout …
Browse files Browse the repository at this point in the history
…doesn't work for it

Signed-off-by: Peter Somogyi <psomogyi@apache.org>
  • Loading branch information
sershe-apache committed May 3, 2019
1 parent f91768f commit 0c0d595
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2955,6 +2955,7 @@ public void abort(String reason, Throwable cause) {
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: " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2418,7 +2418,7 @@ public void abort(String reason, Throwable cause) {
} 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.
Expand Down Expand Up @@ -2452,6 +2452,10 @@ public void abort(String reason, Throwable cause) {
stop(reason, true, null);
}

protected final void setAbortRequested() {
this.abortRequested = true;
}

/**
* @see HRegionServer#abort(String, Throwable)
*/
Expand Down

0 comments on commit 0c0d595

Please sign in to comment.