Skip to content

Commit

Permalink
add print log
Browse files Browse the repository at this point in the history
  • Loading branch information
JNSimba committed Aug 5, 2024
1 parent fe88af9 commit 1f35517
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@

import java.io.IOException;
import java.io.Serializable;
import java.net.NoRouteToHostException;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
Expand Down Expand Up @@ -281,6 +282,9 @@ public RespContent stopLoad() throws IOException {
Preconditions.checkState(pendingLoadFuture != null);
try {
return handlePreCommitResponse(pendingLoadFuture.get());
} catch (NoRouteToHostException nex){
LOG.error("Failed to connect, cause ", nex);
throw new DorisRuntimeException("No Route to Host to " + hostPort + ", exception: " + nex);
} catch (Exception e) {
throw new DorisRuntimeException(e);
}
Expand Down

0 comments on commit 1f35517

Please sign in to comment.