changxue created IOTDB-5548:
-------------------------------

             Summary: [template]fail to drop template of `123`
                 Key: IOTDB-5548
                 URL: https://issues.apache.org/jira/browse/IOTDB-5548
             Project: Apache IoTDB
          Issue Type: Bug
            Reporter: changxue
            Assignee: liaolanyu


build: 1.1.0-SNAPSHOT  master 1a69b40

reproduction:
run these commands in cli:
{code}
create schema template `123` aligned (lat FLOAT encoding=Gorilla, lon FLOAT 
encoding=Gorilla);
show schema templates;
drop schema template `123`
{code}

{code}
IoTDB> show schema templates
+------------+
|TemplateName|
+------------+
|       `123`|
+------------+
Total line number = 1
It costs 0.121s
IoTDB> drop schema template `123`
Msg: 507: Template 123 does not exist
{code}

datanode log:
{code}
2023-02-17 10:06:40,203 
[pool-25-IoTDB-ClientRPC-Processor-1$20230217_020640_00770_1] WARN  
o.a.i.d.m.p.e.c.e.ClusterConfigTaskExecutor:1163 - Failed to execute drop 
schema template 123 in config node, status is TSStatus(code:507, 
message:Template 123 does not exist). 
2023-02-17 10:06:40,203 [pool-21-IoTDB-MPPCoordinator-11] WARN  
o.a.i.d.m.p.e.c.ConfigExecution:131 - Failures happened during running 
ConfigExecution. 
org.apache.iotdb.commons.exception.IoTDBException: Template 123 does not exist
        at 
org.apache.iotdb.db.mpp.plan.execution.config.executor.ClusterConfigTaskExecutor.dropSchemaTemplate(ClusterConfigTaskExecutor.java:1167)
        at 
org.apache.iotdb.db.mpp.plan.execution.config.metadata.template.DropSchemaTemplateTask.execute(DropSchemaTemplateTask.java:40)
        at 
org.apache.iotdb.db.mpp.plan.execution.config.ConfigExecution.start(ConfigExecution.java:106)
        at 
org.apache.iotdb.db.mpp.plan.Coordinator.execute(Coordinator.java:161)
        at 
org.apache.iotdb.db.service.thrift.impl.ClientRPCServiceImpl.executeStatementInternal(ClientRPCServiceImpl.java:218)
        at 
org.apache.iotdb.db.service.thrift.impl.ClientRPCServiceImpl.executeStatementV2(ClientRPCServiceImpl.java:476)
        at 
org.apache.iotdb.service.rpc.thrift.IClientRPCService$Processor$executeStatementV2.getResult(IClientRPCService.java:3629)
        at 
org.apache.iotdb.service.rpc.thrift.IClientRPCService$Processor$executeStatementV2.getResult(IClientRPCService.java:3609)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:38)
        at 
org.apache.iotdb.db.service.thrift.ProcessorWithMetrics.process(ProcessorWithMetrics.java:64)
        at 
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:248)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
{code}




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to