This is an automated email from the ASF dual-hosted git repository.
qiaojialin pushed a commit to branch rel/0.12
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/rel/0.12 by this push:
new 6b13f83441 add log in query when a file does not contain a device that
should in (#6160)
6b13f83441 is described below
commit 6b13f83441da84d055a3ab53e5e26365e902f8a5
Author: Jialin Qiao <[email protected]>
AuthorDate: Mon Jun 6 14:51:37 2022 +0800
add log in query when a file does not contain a device that should in
(#6160)
---
.../main/java/org/apache/iotdb/tsfile/read/TsFileSequenceReader.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/tsfile/src/main/java/org/apache/iotdb/tsfile/read/TsFileSequenceReader.java
b/tsfile/src/main/java/org/apache/iotdb/tsfile/read/TsFileSequenceReader.java
index 4d92146d23..aa90fd7f6b 100644
---
a/tsfile/src/main/java/org/apache/iotdb/tsfile/read/TsFileSequenceReader.java
+++
b/tsfile/src/main/java/org/apache/iotdb/tsfile/read/TsFileSequenceReader.java
@@ -333,7 +333,8 @@ public class TsFileSequenceReader implements AutoCloseable {
if (ignoreNotExists) {
return null;
}
- throw new IOException("Device {" + path.getDevice() + "} is not in
tsFileMetaData");
+ logger.warn("Device {} is not in {}", path.getDevice(), file);
+ return null;
}
ByteBuffer buffer = readData(metadataIndexPair.left.getOffset(),
metadataIndexPair.right);
MetadataIndexNode metadataIndexNode = deviceMetadataIndexNode;