Skip to content

Commit

Permalink
Use TimeoutIOException instead
Browse files Browse the repository at this point in the history
Change-Id: I52dba1d32d81191c781b35d6d028aaeac90b7cce
  • Loading branch information
jojochuang committed May 29, 2024
1 parent 2f636a4 commit f93dedf
Showing 1 changed file with 2 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 @@ -209,7 +210,7 @@ private long writeWALMetadata(Consumer<CompletableFuture<Long>> action) throws I
Throwables.propagateIfPossible(e.getCause(), IOException.class);
throw new RuntimeException(e.getCause());
} catch (TimeoutException e) {
throw new RuntimeException(e);
throw new TimeoutIOException(e);
}
}

Expand Down

0 comments on commit f93dedf

Please sign in to comment.