You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ro...@apache.org on 2024/03/11 07:49:42 UTC

(iotdb) branch fix-pipe-legacy-connector-tests created (now c5f7ba33064)

This is an automated email from the ASF dual-hosted git repository.

rong pushed a change to branch fix-pipe-legacy-connector-tests
in repository https://gitbox.apache.org/repos/asf/iotdb.git


      at c5f7ba33064 Pipe: fix legacy receiver's unsafe execution race problem (fix IoTDBPipeDataSinkIT.testLegacyConnector)

This branch includes the following new commits:

     new c5f7ba33064 Pipe: fix legacy receiver's unsafe execution race problem (fix IoTDBPipeDataSinkIT.testLegacyConnector)

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(iotdb) 01/01: Pipe: fix legacy receiver's unsafe execution race problem (fix IoTDBPipeDataSinkIT.testLegacyConnector)

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rong pushed a commit to branch fix-pipe-legacy-connector-tests
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit c5f7ba33064494149b1caaa885268f089396100a
Author: Steve Yurong Su <ro...@apache.org>
AuthorDate: Mon Mar 11 15:49:34 2024 +0800

    Pipe: fix legacy receiver's unsafe execution race problem (fix IoTDBPipeDataSinkIT.testLegacyConnector)
---
 .../db/pipe/connector/protocol/legacy/IoTDBLegacyPipeConnector.java  | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/connector/protocol/legacy/IoTDBLegacyPipeConnector.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/connector/protocol/legacy/IoTDBLegacyPipeConnector.java
index 257d7746f3b..8975459d79a 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/connector/protocol/legacy/IoTDBLegacyPipeConnector.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/connector/protocol/legacy/IoTDBLegacyPipeConnector.java
@@ -104,8 +104,6 @@ public class IoTDBLegacyPipeConnector implements PipeConnector {
   private String syncConnectorVersion;
 
   private String pipeName;
-  private Long creationTime;
-
   private IoTDBSyncClient client;
 
   private SessionPool sessionPool;
@@ -205,7 +203,6 @@ public class IoTDBLegacyPipeConnector implements PipeConnector {
             CONNECTOR_IOTDB_SYNC_CONNECTOR_VERSION_DEFAULT_VALUE);
 
     pipeName = configuration.getRuntimeEnvironment().getPipeName();
-    creationTime = configuration.getRuntimeEnvironment().getCreationTime();
 
     useSSL = parameters.getBooleanOrDefault(SINK_IOTDB_SSL_ENABLE_KEY, false);
     trustStore = parameters.getString(SINK_IOTDB_SSL_TRUST_STORE_PATH_KEY);
@@ -230,7 +227,7 @@ public class IoTDBLegacyPipeConnector implements PipeConnector {
               trustStorePwd);
       final TSyncIdentityInfo identityInfo =
           new TSyncIdentityInfo(
-              pipeName, creationTime, syncConnectorVersion, IoTDBConstant.PATH_ROOT);
+              pipeName, System.currentTimeMillis(), syncConnectorVersion, IoTDBConstant.PATH_ROOT);
       final TSStatus status = client.handshake(identityInfo);
       if (status.code != TSStatusCode.SUCCESS_STATUS.getStatusCode()) {
         String errorMsg =