This is an automated email from the ASF dual-hosted git repository.
justinchen pushed a commit to branch dev/1.3
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/dev/1.3 by this push:
new b02a22fad95 [To dev/1.3] Pipe: Further reduced the repeating exception
log & Changed the default log reducer size to 16M & Did some minor fixes in
Device Schema Cache (#16417) (#16423)
b02a22fad95 is described below
commit b02a22fad950e53d1ab7696960bf26d56b980f9a
Author: Caideyipi <[email protected]>
AuthorDate: Tue Sep 16 17:48:45 2025 +0800
[To dev/1.3] Pipe: Further reduced the repeating exception log & Changed
the default log reducer size to 16M & Did some minor fixes in Device Schema
Cache (#16417) (#16423)
* Pipe: Further reduced the repeating exception log & Changed the default
log reducer size to 16M & Did some minor fixes in Device Schema Cache (#16417)
* fix
* fix
* add-back
---
.../sink/protocol/thrift/async/IoTDBDataRegionAsyncSink.java | 9 ++++++---
.../main/java/org/apache/iotdb/commons/conf/CommonConfig.java | 2 +-
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/thrift/async/IoTDBDataRegionAsyncSink.java
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/thrift/async/IoTDBDataRegionAsyncSink.java
index e9def74eaaa..2b57d94bfc3 100644
---
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/thrift/async/IoTDBDataRegionAsyncSink.java
+++
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/thrift/async/IoTDBDataRegionAsyncSink.java
@@ -23,6 +23,7 @@ import org.apache.iotdb.common.rpc.thrift.TEndPoint;
import
org.apache.iotdb.commons.client.async.AsyncPipeDataTransferServiceClient;
import org.apache.iotdb.commons.pipe.config.PipeConfig;
import org.apache.iotdb.commons.pipe.event.EnrichedEvent;
+import org.apache.iotdb.commons.pipe.resource.log.PipeLogger;
import org.apache.iotdb.commons.pipe.sink.protocol.IoTDBSink;
import org.apache.iotdb.db.pipe.event.common.heartbeat.PipeHeartbeatEvent;
import
org.apache.iotdb.db.pipe.event.common.schema.PipeSchemaRegionWritePlanEvent;
@@ -497,11 +498,13 @@ public class IoTDBDataRegionAsyncSink extends IoTDBSink {
private void logOnClientException(
final AsyncPipeDataTransferServiceClient client, final Exception e) {
if (client == null) {
- LOGGER.warn(THRIFT_ERROR_FORMATTER_WITHOUT_ENDPOINT);
+ PipeLogger.log(LOGGER::warn, THRIFT_ERROR_FORMATTER_WITHOUT_ENDPOINT);
} else {
client.resetMethodStateIfStopped();
- LOGGER.warn(
- String.format(THRIFT_ERROR_FORMATTER_WITH_ENDPOINT, client.getIp(),
client.getPort()), e);
+ PipeLogger.log(
+ LOGGER::warn,
+ e,
+ String.format(THRIFT_ERROR_FORMATTER_WITH_ENDPOINT, client.getIp(),
client.getPort()));
}
}
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 a8c4c1758a8..24d72a5e415 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
@@ -300,7 +300,7 @@ public class CommonConfig {
private int pipeReceiverReqDecompressedMaxLengthInBytes = 1073741824; // 1GB
private boolean pipeReceiverLoadConversionEnabled = false;
private volatile long pipePeriodicalLogMinIntervalSeconds = 60;
- private volatile long pipeLoggerCacheMaxSizeInBytes = 10 * MB;
+ private volatile long pipeLoggerCacheMaxSizeInBytes = 16 * MB;
private volatile double pipeMetaReportMaxLogNumPerRound = 0.1;
private volatile int pipeMetaReportMaxLogIntervalRounds = 360;