You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/client/IoTDBDataNodeSyncClientManager.java
Copy file name to clipboardExpand all lines: iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/sink/client/IoTDBSyncClientManager.java
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -121,7 +121,7 @@ public void checkClientStatusAndTryReconstructIfNecessary() {
121
121
// Check whether any clients are available, if any client is available, return directly
122
122
for (finalPair<IoTDBSyncClient, Boolean> clientAndStatus :
123
123
endPoint2ClientAndStatus.values()) {
124
-
if (Boolean.TRUE.equals(clientAndStatus.getRight())) {
124
+
if (Boolean.TRUE.equals(clientAndStatus.getRight()) && clientAndStatus.getLeft() != null) {
125
125
return;
126
126
}
127
127
}
@@ -130,7 +130,7 @@ public void checkClientStatusAndTryReconstructIfNecessary() {
130
130
// Reconstruct all dead clients
131
131
for (finalMap.Entry<TEndPoint, Pair<IoTDBSyncClient, Boolean>> entry :
132
132
endPoint2ClientAndStatus.entrySet()) {
133
-
if (Boolean.TRUE.equals(entry.getValue().getRight())) {
133
+
if (Boolean.TRUE.equals(entry.getValue().getRight()) && entry.getValue().getLeft() != null) {
134
134
continue;
135
135
}
136
136
@@ -139,7 +139,7 @@ public void checkClientStatusAndTryReconstructIfNecessary() {
139
139
140
140
// Check whether any clients are available
141
141
for (finalPair<IoTDBSyncClient, Boolean> clientAndStatus : endPoint2ClientAndStatus.values()) {
142
-
if (Boolean.TRUE.equals(clientAndStatus.getRight())) {
142
+
if (Boolean.TRUE.equals(clientAndStatus.getRight()) && clientAndStatus.getLeft() != null) {
0 commit comments