This is an automated email from the ASF dual-hosted git repository.
jiangtian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new ad0416e00c7 Disabled the repeatable pipe log when the receiver is down
(#16963)
ad0416e00c7 is described below
commit ad0416e00c705ef268d5601915eb0e480db8f630
Author: Caideyipi <[email protected]>
AuthorDate: Tue Dec 30 11:00:36 2025 +0800
Disabled the repeatable pipe log when the receiver is down (#16963)
---
.../org/apache/iotdb/commons/client/ClientPoolFactory.java | 1 +
.../java/org/apache/iotdb/commons/conf/CommonConfig.java | 13 +++++++++++++
.../apache/iotdb/commons/pipe/config/PipeDescriptor.java | 5 +++++
3 files changed, 19 insertions(+)
diff --git
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/client/ClientPoolFactory.java
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/client/ClientPoolFactory.java
index 115f322348c..d09b9245e84 100644
---
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/client/ClientPoolFactory.java
+++
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/client/ClientPoolFactory.java
@@ -312,6 +312,7 @@ public class ClientPoolFactory {
conf.isPipeConnectorRPCThriftCompressionEnabled())
.setSelectorNumOfAsyncClientManager(
conf.getPipeAsyncConnectorSelectorNumber())
+
.setPrintLogWhenEncounterException(conf.isPrintLogWhenEncounterException())
.build(),
ThreadName.PIPE_ASYNC_CONNECTOR_CLIENT_POOL.getName()),
new
ClientPoolProperty.Builder<AsyncPipeDataTransferServiceClient>()
diff --git
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/conf/CommonConfig.java
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/conf/CommonConfig.java
index 8c821f5766f..e0225b698a9 100644
---
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/conf/CommonConfig.java
+++
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/conf/CommonConfig.java
@@ -282,6 +282,7 @@ public class CommonConfig {
Math.max(32, Runtime.getRuntime().availableProcessors() * 2);
private int pipeAsyncConnectorMaxTsFileClientNumber =
Math.max(16, Runtime.getRuntime().availableProcessors());
+ private boolean printLogWhenEncounterException = false;
private double pipeSendTsFileRateLimitBytesPerSecond = 32 * MB;
private double pipeAllSinksRateLimitBytesPerSecond = -1;
@@ -1256,6 +1257,18 @@ public class CommonConfig {
"pipeAsyncConnectorMaxClientNumber is set to {}.",
pipeAsyncConnectorMaxTsFileClientNumber);
}
+ public boolean isPrintLogWhenEncounterException() {
+ return printLogWhenEncounterException;
+ }
+
+ public void setPrintLogWhenEncounterException(boolean
printLogWhenEncounterException) {
+ if (this.printLogWhenEncounterException == printLogWhenEncounterException)
{
+ return;
+ }
+ this.printLogWhenEncounterException = printLogWhenEncounterException;
+ logger.info("printLogWhenEncounterException is set to {}.",
printLogWhenEncounterException);
+ }
+
public boolean isSeperatedPipeHeartbeatEnabled() {
return isSeperatedPipeHeartbeatEnabled;
}
diff --git
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/config/PipeDescriptor.java
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/config/PipeDescriptor.java
index cbe4dd25e83..2aeab95972d 100644
---
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/config/PipeDescriptor.java
+++
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/config/PipeDescriptor.java
@@ -608,6 +608,11 @@ public class PipeDescriptor {
if (value != null) {
config.setPipeAllSinksRateLimitBytesPerSecond(Double.parseDouble(value));
}
+
+ value = parserPipeConfig(properties, "print_log_when_encounter_exception",
isHotModify);
+ if (value != null) {
+ config.setPrintLogWhenEncounterException(Boolean.parseBoolean(value));
+ }
}
private static String parserPipeConfig(