Skip to content

Commit 431e2b3

Browse files
committed
Drop PipeDataNodeTaskAgent change — already fixed in master (#17590)
1 parent 10c2911 commit 431e2b3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/agent/task/PipeDataNodeTaskAgent.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import org.apache.iotdb.commons.concurrent.IoTThreadFactory;
2525
import org.apache.iotdb.commons.concurrent.ThreadName;
2626
import org.apache.iotdb.commons.concurrent.threadpool.WrappedThreadPoolExecutor;
27+
import org.apache.iotdb.commons.conf.CommonDescriptor;
2728
import org.apache.iotdb.commons.consensus.DataRegionId;
2829
import org.apache.iotdb.commons.consensus.SchemaRegionId;
2930
import org.apache.iotdb.commons.consensus.index.ProgressIndex;
@@ -376,7 +377,8 @@ public void stopAllPipesWithCriticalExceptionAndTrackException(
376377
///////////////////////// Heartbeat /////////////////////////
377378

378379
public void collectPipeMetaList(final TDataNodeHeartbeatResp resp) throws TException {
379-
if (!tryReadLockWithTimeOut(2)) {
380+
if (!tryReadLockWithTimeOutInMs(
381+
CommonDescriptor.getInstance().getConfig().getDnConnectionTimeoutInMS() * 2L / 3)) {
380382
return;
381383
}
382384
try {

0 commit comments

Comments
 (0)