Skip to content

Commit a5bd10e

Browse files
committed
modify PlanNodeType
1 parent e37668e commit a5bd10e

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

‎iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/PlanNodeType.java‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,9 @@ public enum PlanNodeType {
272272

273273
LAST_QUERY_SCAN((short) 98),
274274
ALTER_ENCODING_COMPRESSOR((short) 99),
275-
SHOW_DISK_USAGE((short) 100),
276-
TREE_COLLECT((short) 101),
275+
// 100 - 106 are occupied
276+
SHOW_DISK_USAGE((short) 107),
277+
TREE_COLLECT((short) 108),
277278

278279
CREATE_OR_UPDATE_TABLE_DEVICE((short) 902),
279280
TABLE_DEVICE_QUERY_SCAN((short) 903),
@@ -613,9 +614,10 @@ public static PlanNode deserialize(ByteBuffer buffer, short nodeType) {
613614
return LastQueryScanNode.deserialize(buffer);
614615
case 99:
615616
return AlterEncodingCompressorNode.deserialize(buffer);
616-
case 100:
617+
// 100 - 106 are occupied
618+
case 107:
617619
return ShowDiskUsageNode.deserialize(buffer);
618-
case 101:
620+
case 108:
619621
return CollectNode.deserialize(buffer);
620622
case 902:
621623
return CreateOrUpdateTableDeviceNode.deserialize(buffer);

‎iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/utils/tableDiskUsageIndex/TableDiskUsageIndex.java‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected void run() {
6969
syncTsFileTableSizeIndexIfNecessary(writer);
7070
persistPendingObjectDeltasIfNecessary(writer);
7171
}
72-
Operation operation = queue.poll(5, TimeUnit.SECONDS);
72+
Operation operation = queue.poll(1, TimeUnit.SECONDS);
7373
if (operation != null) {
7474
operation.apply(this);
7575
processedOperationCountSinceLastPeriodicCheck++;
@@ -81,8 +81,7 @@ protected void run() {
8181
// Ignore unexpected interruptions to guarantee the worker thread continues running.
8282
// This worker relies on the `stop` flag to terminate gracefully. Therefore, if an
8383
// interruption occurs while TableDiskUsageIndex is still active, we log the event and
84-
// keep
85-
// processing subsequent operations.
84+
// keep processing subsequent operations.
8685
if (!stop) {
8786
LOGGER.warn(
8887
"TableDiskUsageIndex worker thread was interrupted unexpectedly while waiting for operations.",

0 commit comments

Comments
 (0)