Skip to content

Commit f93dedf

Browse files
committed
Use TimeoutIOException instead
Change-Id: I52dba1d32d81191c781b35d6d028aaeac90b7cce
1 parent 2f636a4 commit f93dedf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/AsyncProtobufLogWriter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import org.apache.hadoop.fs.Path;
3333
import org.apache.hadoop.hbase.Cell;
3434
import org.apache.hadoop.hbase.HBaseConfiguration;
35+
import org.apache.hadoop.hbase.exceptions.TimeoutIOException;
3536
import org.apache.hadoop.hbase.io.ByteBufferWriter;
3637
import org.apache.hadoop.hbase.io.asyncfs.AsyncFSOutput;
3738
import org.apache.hadoop.hbase.io.asyncfs.AsyncFSOutputHelper;
@@ -209,7 +210,7 @@ private long writeWALMetadata(Consumer<CompletableFuture<Long>> action) throws I
209210
Throwables.propagateIfPossible(e.getCause(), IOException.class);
210211
throw new RuntimeException(e.getCause());
211212
} catch (TimeoutException e) {
212-
throw new RuntimeException(e);
213+
throw new TimeoutIOException(e);
213214
}
214215
}
215216

0 commit comments

Comments
 (0)