Skip to content

Commit b02a22f

Browse files
authored
[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
1 parent 76d158a commit b02a22f

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/thrift/async/IoTDBDataRegionAsyncSink.java‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.apache.iotdb.commons.client.async.AsyncPipeDataTransferServiceClient;
2424
import org.apache.iotdb.commons.pipe.config.PipeConfig;
2525
import org.apache.iotdb.commons.pipe.event.EnrichedEvent;
26+
import org.apache.iotdb.commons.pipe.resource.log.PipeLogger;
2627
import org.apache.iotdb.commons.pipe.sink.protocol.IoTDBSink;
2728
import org.apache.iotdb.db.pipe.event.common.heartbeat.PipeHeartbeatEvent;
2829
import org.apache.iotdb.db.pipe.event.common.schema.PipeSchemaRegionWritePlanEvent;
@@ -497,11 +498,13 @@ public void updateLeaderCache(final String deviceId, final TEndPoint endPoint) {
497498
private void logOnClientException(
498499
final AsyncPipeDataTransferServiceClient client, final Exception e) {
499500
if (client == null) {
500-
LOGGER.warn(THRIFT_ERROR_FORMATTER_WITHOUT_ENDPOINT);
501+
PipeLogger.log(LOGGER::warn, THRIFT_ERROR_FORMATTER_WITHOUT_ENDPOINT);
501502
} else {
502503
client.resetMethodStateIfStopped();
503-
LOGGER.warn(
504-
String.format(THRIFT_ERROR_FORMATTER_WITH_ENDPOINT, client.getIp(), client.getPort()), e);
504+
PipeLogger.log(
505+
LOGGER::warn,
506+
e,
507+
String.format(THRIFT_ERROR_FORMATTER_WITH_ENDPOINT, client.getIp(), client.getPort()));
505508
}
506509
}
507510

‎iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/conf/CommonConfig.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ public class CommonConfig {
300300
private int pipeReceiverReqDecompressedMaxLengthInBytes = 1073741824; // 1GB
301301
private boolean pipeReceiverLoadConversionEnabled = false;
302302
private volatile long pipePeriodicalLogMinIntervalSeconds = 60;
303-
private volatile long pipeLoggerCacheMaxSizeInBytes = 10 * MB;
303+
private volatile long pipeLoggerCacheMaxSizeInBytes = 16 * MB;
304304

305305
private volatile double pipeMetaReportMaxLogNumPerRound = 0.1;
306306
private volatile int pipeMetaReportMaxLogIntervalRounds = 360;

0 commit comments

Comments
 (0)