Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions hbase-client/src/main/java/org/apache/hadoop/hbase/Abortable.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ public interface Abortable {
*/
void abort(String why, Throwable e);

/**
* It just call another abort method and the Throwable
* parameter is null.
* @param why Why we're aborting.
* @see Abortable#abort(String, Throwable)
*/
default void abort(String why) {
abort(why, null);
}

/**
* Check if the server or client was aborted.
* @return true if the server or client was aborted, false otherwise
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2636,13 +2636,6 @@ protected boolean setAbortRequested() {
return abortRequested.compareAndSet(false, true);
}

/**
* @see HRegionServer#abort(String, Throwable)
*/
public void abort(String reason) {
abort(reason, null);
}

@Override
public boolean isAborted() {
return abortRequested.get();
Expand Down