Skip to content

Commit

Permalink
HBASE-28546 Make WAL rolling exception clear (#5848)
Browse files Browse the repository at this point in the history
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit debb192)
(cherry picked from commit 8654420)
  • Loading branch information
jojochuang committed May 31, 2024
1 parent 089e976 commit 6cb22b0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.hbase.Cell;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.exceptions.TimeoutIOException;
import org.apache.hadoop.hbase.io.ByteBufferWriter;
import org.apache.hadoop.hbase.io.asyncfs.AsyncFSOutput;
import org.apache.hadoop.hbase.io.asyncfs.AsyncFSOutputHelper;
Expand Down Expand Up @@ -205,9 +206,11 @@ private long writeWALMetadata(Consumer<CompletableFuture<Long>> action) throws I
InterruptedIOException ioe = new InterruptedIOException();
ioe.initCause(e);
throw ioe;
} catch (ExecutionException | TimeoutException e) {
} catch (ExecutionException e) {
Throwables.propagateIfPossible(e.getCause(), IOException.class);
throw new RuntimeException(e.getCause());
} catch (TimeoutException e) {
throw new TimeoutIOException(e);
}
}

Expand Down

0 comments on commit 6cb22b0

Please sign in to comment.