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

haonan 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 a920737417 [IOTDB-3515] load empty TsFile error message (#6307)
a920737417 is described below

commit a920737417330cb4b9fdb3d146af1c952057858b
Author: Chen YZ <[email protected]>
AuthorDate: Thu Jun 16 23:01:49 2022 +0800

    [IOTDB-3515] load empty TsFile error message (#6307)
---
 server/src/main/java/org/apache/iotdb/db/engine/StorageEngine.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/engine/StorageEngine.java 
b/server/src/main/java/org/apache/iotdb/db/engine/StorageEngine.java
index 322c24e742..9643efb22a 100644
--- a/server/src/main/java/org/apache/iotdb/db/engine/StorageEngine.java
+++ b/server/src/main/java/org/apache/iotdb/db/engine/StorageEngine.java
@@ -873,7 +873,7 @@ public class StorageEngine implements IService {
       throws LoadFileException, StorageEngineException, MetadataException {
     Set<String> deviceSet = newTsFileResource.getDevices();
     if (deviceSet == null || deviceSet.isEmpty()) {
-      throw new StorageEngineException("Can not get the corresponding storage 
group.");
+      throw new StorageEngineException("The TsFile is empty, cannot be 
loaded.");
     }
     String device = deviceSet.iterator().next();
     PartialPath devicePath = new PartialPath(device);

Reply via email to