You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2022/06/17 09:46:43 UTC

[iotdb] branch rel/0.12 updated: [To rel/0.12][IOTDB-3515] load empty TsFile error message (#6304)

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

haonan 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 79505ce3bd [To rel/0.12][IOTDB-3515] load empty TsFile error message (#6304)
79505ce3bd is described below

commit 79505ce3bddbd1427187f2be30f6d5445fdf9604
Author: Chen YZ <43...@users.noreply.github.com>
AuthorDate: Fri Jun 17 17:46:38 2022 +0800

    [To rel/0.12][IOTDB-3515] load empty TsFile error message (#6304)
---
 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 fb19d1aced..ce8478a879 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
@@ -976,7 +976,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);