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

tanxinyu 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 e7ff013  [To rel/0.12][IoTDB-1847] Not throw excpetion when pulling 
non--existent time series (#4337)
e7ff013 is described below

commit e7ff0135c3b4b3a35f5134e3ce0ba045020a40fe
Author: Mrquan <[email protected]>
AuthorDate: Mon Nov 8 20:54:51 2021 +0800

    [To rel/0.12][IoTDB-1847] Not throw excpetion when pulling non--existent 
time series (#4337)
    
    * not throw exception when pulling non-existent time series
---
 server/src/main/java/org/apache/iotdb/db/metadata/MManager.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/metadata/MManager.java 
b/server/src/main/java/org/apache/iotdb/db/metadata/MManager.java
index 191ab9e..9c01309 100644
--- a/server/src/main/java/org/apache/iotdb/db/metadata/MManager.java
+++ b/server/src/main/java/org/apache/iotdb/db/metadata/MManager.java
@@ -1714,7 +1714,11 @@ public class MManager {
 
   public void collectTimeseriesSchema(
       String prefixPath, Collection<TimeseriesSchema> timeseriesSchemas) 
throws MetadataException {
-    collectTimeseriesSchema(getNodeByPath(new PartialPath(prefixPath)), 
timeseriesSchemas);
+    try {
+      collectTimeseriesSchema(getNodeByPath(new PartialPath(prefixPath)), 
timeseriesSchemas);
+    } catch (MetadataException e) {
+      // do nothing
+    }
   }
 
   public void collectMeasurementSchema(

Reply via email to