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:05:33 UTC
[iotdb] branch master updated: [IOTDB-5233] Correct the message of unsupported thrift interface of schema template (#8506)
This is an automated email from the ASF dual-hosted git repository.
zyk 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 43319883cb [IOTDB-5233] Correct the message of unsupported thrift interface of schema template (#8506)
43319883cb is described below
commit 43319883cb36441a5d24c460d2760f8abddfac2e
Author: Marcos_Zyk <38...@users.noreply.github.com>
AuthorDate: Mon Dec 19 16:05:27 2022 +0800
[IOTDB-5233] Correct the message of unsupported thrift interface of schema template (#8506)
[IOTDB-5233] Correct the message of unsupported thrift interface of schema template (#8506)
---
.../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