File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
hbase-client/src/main/java/org/apache/hadoop/hbase
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,16 @@ public interface Abortable {
3737 */
3838 void abort (String why , Throwable e );
3939
40+ /**
41+ * It just call another abort method and the Throwable
42+ * parameter is null.
43+ * @param why Why we're aborting.
44+ * @see Abortable#abort(String, Throwable)
45+ */
46+ default void abort (String why ) {
47+ abort (why , null );
48+ }
49+
4050 /**
4151 * Check if the server or client was aborted.
4252 * @return true if the server or client was aborted, false otherwise
Original file line number Diff line number Diff line change @@ -2636,13 +2636,6 @@ protected boolean setAbortRequested() {
26362636 return abortRequested .compareAndSet (false , true );
26372637 }
26382638
2639- /**
2640- * @see HRegionServer#abort(String, Throwable)
2641- */
2642- public void abort (String reason ) {
2643- abort (reason , null );
2644- }
2645-
26462639 @ Override
26472640 public boolean isAborted () {
26482641 return abortRequested .get ();
You can’t perform that action at this time.
0 commit comments