This is an automated email from the ASF dual-hosted git repository.
rong 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 0c444734d50 Load: fix that empty measurement in aligned devices may
cause warnings (#14444)
0c444734d50 is described below
commit 0c444734d50e60d964dc2e411a5ab84109d3a713
Author: Zikun Ma <[email protected]>
AuthorDate: Mon Dec 16 19:13:11 2024 +0800
Load: fix that empty measurement in aligned devices may cause warnings
(#14444)
---
.../analyze/load/TreeSchemaAutoCreatorAndVerifier.java | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/load/TreeSchemaAutoCreatorAndVerifier.java
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/load/TreeSchemaAutoCreatorAndVerifier.java
index 4be632b33c9..c36b7f0aaf3 100644
---
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/load/TreeSchemaAutoCreatorAndVerifier.java
+++
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/load/TreeSchemaAutoCreatorAndVerifier.java
@@ -125,11 +125,15 @@ public class TreeSchemaAutoCreatorAndVerifier {
continue;
}
} catch (IllegalPathException e) {
- LOGGER.warn(
- "Failed to check if device {}, timeseries {} is deleted by mods.
Will see it as not deleted.",
- device,
- timeseriesMetadata.getMeasurementId(),
- e);
+ // In aligned devices, there may be empty measurements which will
cause
+ // IllegalPathException.
+ if (!timeseriesMetadata.getMeasurementId().isEmpty()) {
+ LOGGER.warn(
+ "Failed to check if device {}, timeseries {} is deleted by
mods. Will see it as not deleted.",
+ device,
+ timeseriesMetadata.getMeasurementId(),
+ e);
+ }
}
final TSDataType dataType = timeseriesMetadata.getTsDataType();