This is an automated email from the ASF dual-hosted git repository.
justinchen pushed a commit to branch thrift-log
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/thrift-log by this push:
new 017f810b851 th
017f810b851 is described below
commit 017f810b8513b295f99e6263586a08bee2fa0ef5
Author: Caideyipi <[email protected]>
AuthorDate: Mon Dec 29 17:28:46 2025 +0800
th
---
.../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(