You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by zy...@apache.org on 2022/12/19 08:06:02 UTC

[iotdb] branch rel/1.0 updated: [To rel/1.0][IOTDB-5233] Correct the message of unsupported thrift interface of schema template (#8508)

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

zyk pushed a commit to branch rel/1.0
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/rel/1.0 by this push:
     new d1dbd2702b [To rel/1.0][IOTDB-5233] Correct the message of unsupported thrift interface of schema template (#8508)
d1dbd2702b is described below

commit d1dbd2702b57fff24770a50d925e0db2d6b9e63c
Author: Marcos_Zyk <38...@users.noreply.github.com>
AuthorDate: Mon Dec 19 16:05:56 2022 +0800

    [To rel/1.0][IOTDB-5233] Correct the message of unsupported thrift interface of schema template (#8508)
    
    [To rel/1.0][IOTDB-5233] Correct the message of unsupported thrift interface of schema template (#8508)
---
 .../iotdb/db/service/thrift/impl/ClientRPCServiceImpl.java     | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/service/thrift/impl/ClientRPCServiceImpl.java b/server/src/main/java/org/apache/iotdb/db/service/thrift/impl/ClientRPCServiceImpl.java
index f3f9d4e5ba..c16745624a 100644
--- a/server/src/main/java/org/apache/iotdb/db/service/thrift/impl/ClientRPCServiceImpl.java
+++ b/server/src/main/java/org/apache/iotdb/db/service/thrift/impl/ClientRPCServiceImpl.java
@@ -818,7 +818,8 @@ public class ClientRPCServiceImpl implements IClientRPCServiceWithHandler {
 
   @Override
   public TSFetchMetadataResp fetchMetadata(TSFetchMetadataReq req) {
-    throw new UnsupportedOperationException();
+    return new TSFetchMetadataResp(
+        RpcUtils.getStatus(TSStatusCode.UNSUPPORTED_OPERATION, "Fetch Metadata is not supported."));
   }
 
   @Override
@@ -1447,13 +1448,14 @@ public class ClientRPCServiceImpl implements IClientRPCServiceWithHandler {
 
   @Override
   public TSStatus appendSchemaTemplate(TSAppendSchemaTemplateReq req) {
-    // todo: check measurement using isLegalSingleMeasurements()
-    throw new UnsupportedOperationException();
+    return RpcUtils.getStatus(
+        TSStatusCode.UNSUPPORTED_OPERATION, "Modify template has not been supported.");
   }
 
   @Override
   public TSStatus pruneSchemaTemplate(TSPruneSchemaTemplateReq req) {
-    throw new UnsupportedOperationException();
+    return RpcUtils.getStatus(
+        TSStatusCode.UNSUPPORTED_OPERATION, "Modify template has not been supported.");
   }
 
   @Override