This is an automated email from the ASF dual-hosted git repository.
rong 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 a9ece08ad6d Load: fix that empty measurement in aligned devices may
cause warnings (#14444) (#14448)
a9ece08ad6d is described below
commit a9ece08ad6d1b1b1c7bdb4c6cfa9660bbeb2dcf9
Author: Zikun Ma <[email protected]>
AuthorDate: Mon Dec 16 21:03:22 2024 +0800
Load: fix that empty measurement in aligned devices may cause warnings
(#14444) (#14448)
---
.../db/queryengine/plan/analyze/LoadTsFileAnalyzer.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/LoadTsFileAnalyzer.java
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/LoadTsFileAnalyzer.java
index 97065145fe1..0232d6a8bf3 100644
---
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/LoadTsFileAnalyzer.java
+++
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/LoadTsFileAnalyzer.java
@@ -332,11 +332,15 @@ public class LoadTsFileAnalyzer implements AutoCloseable {
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();