You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tsfile.apache.org by ja...@apache.org on 2024/11/13 10:58:00 UTC

(tsfile) branch MoreAccurateMsg created (now 7a5adbbd)

This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a change to branch MoreAccurateMsg
in repository https://gitbox.apache.org/repos/asf/tsfile.git


      at 7a5adbbd Print file name in error msg

This branch includes the following new commits:

     new 7a5adbbd Print file name in error msg

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(tsfile) 01/01: Print file name in error msg

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jackietien pushed a commit to branch MoreAccurateMsg
in repository https://gitbox.apache.org/repos/asf/tsfile.git

commit 7a5adbbd7e3b68b5c8af944c190d6abd7ca833e5
Author: JackieTien97 <ja...@gmail.com>
AuthorDate: Wed Nov 13 18:57:46 2024 +0800

    Print file name in error msg
---
 .../src/main/java/org/apache/tsfile/read/TsFileSequenceReader.java | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/java/tsfile/src/main/java/org/apache/tsfile/read/TsFileSequenceReader.java b/java/tsfile/src/main/java/org/apache/tsfile/read/TsFileSequenceReader.java
index af8e0f73..d7a3e160 100644
--- a/java/tsfile/src/main/java/org/apache/tsfile/read/TsFileSequenceReader.java
+++ b/java/tsfile/src/main/java/org/apache/tsfile/read/TsFileSequenceReader.java
@@ -520,7 +520,7 @@ public class TsFileSequenceReader implements AutoCloseable {
       if (ignoreNotExistDevice) {
         return null;
       }
-      throw new IOException("Device {" + device + "} is not in tsFileMetaData");
+      throw new IOException("Device {" + device + "} is not in tsFileMetaData of " + file);
     }
     ByteBuffer buffer =
         readData(metadataIndexPair.left.getOffset(), metadataIndexPair.right, ioSizeConsumer);
@@ -589,7 +589,8 @@ public class TsFileSequenceReader implements AutoCloseable {
       if (ignoreNotExistDevice) {
         return null;
       }
-      throw new IOException("Device {" + path.getDeviceString() + "} is not in tsFileMetaData");
+      throw new IOException(
+          "Device {" + path.getDeviceString() + "} is not in tsFileMetaData of " + file);
     }
     ByteBuffer buffer = readData(metadataIndexPair.left.getOffset(), metadataIndexPair.right);
     MetadataIndexNode metadataIndexNode;
@@ -658,7 +659,7 @@ public class TsFileSequenceReader implements AutoCloseable {
       if (ignoreNotExistDevice) {
         return Collections.emptyList();
       }
-      throw new IOException("Device {" + device + "} is not in tsFileMetaData");
+      throw new IOException("Device {" + device + "} is not in tsFileMetaData of " + file);
     }
     List<TimeseriesMetadata> timeseriesMetadataList = new ArrayList<>();