Skip to content

Commit b3067a8

Browse files
author
chengyitian
committed
AJ-791: optimize log info for DBConnection;
1 parent 5a6c921 commit b3067a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/com/xxdb/DBConnection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ public boolean connect(String hostName, int port, String userId, String password
846846
}
847847

848848
if (attempt == totalConnectAttemptNums) {
849-
log.error("Connect failed after " + tryReconnectNums + " reconnect attemps for every node in high availability sites.");
849+
log.error("Connect failed after " + tryReconnectNums + " reconnect attempts for every node in high availability sites.");
850850
return false;
851851
}
852852
} else {
@@ -1023,7 +1023,7 @@ public void switchDataNode(Node node) throws IOException{
10231023
} while (!closed_ && (tryReconnectNums == -1 || attempt < tryReconnectNums));
10241024

10251025
if (!closed_ && !isConnected)
1026-
throw new RuntimeException("Connect to " + node.hostName + ":" + node.port + " failed after " + attempt + " reconnect attemps.");
1026+
throw new RuntimeException("Connect to " + node.hostName + ":" + node.port + " failed after " + attempt + " reconnect attempts.");
10271027

10281028
if (initialScript_!=null && initialScript_.length() > 0){
10291029
run(initialScript_);

0 commit comments

Comments
 (0)