Skip to content

Commit

Permalink
[CELEBORN-871] Init PartitionReader OpenStream failed won't show loca…
Browse files Browse the repository at this point in the history
…tion info
  • Loading branch information
AngersZhuuuu committed Aug 2, 2023
1 parent 6cd1355 commit ec5687b
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ public void onFailure(int chunkIndex, Throwable e) {
TransportClient client = null;
try {
client = clientFactory.createClient(location.getHost(), location.getFetchPort());
} catch (InterruptedException ie) {
logger.error("PartitionReader thread interrupted while creating client.");
throw ie;
OpenStream openBlocks =
new OpenStream(shuffleKey, location.getFileName(), startMapIndex, endMapIndex);
ByteBuffer response = client.sendRpcSync(openBlocks.toByteBuffer(), fetchTimeoutMs);
streamHandle = (StreamHandle) Message.decode(response);
} catch (IOException | InterruptedException e) {
logger.error("PartitionReader thread interrupted while creating client.", e);
throw e;
}
OpenStream openBlocks =
new OpenStream(shuffleKey, location.getFileName(), startMapIndex, endMapIndex);
ByteBuffer response = client.sendRpcSync(openBlocks.toByteBuffer(), fetchTimeoutMs);
streamHandle = (StreamHandle) Message.decode(response);

this.location = location;
this.clientFactory = clientFactory;
Expand Down

0 comments on commit ec5687b

Please sign in to comment.