Yukun Zhou created IOTDB-5877: --------------------------------- Summary: StringIndexOutOfBoundsException occurred when invoking Session.createTimeseriesUsingSchemaTemplate with list contains null Key: IOTDB-5877 URL: https://issues.apache.org/jira/browse/IOTDB-5877 Project: Apache IoTDB Issue Type: Bug Reporter: Yukun Zhou Assignee: Yukun Zhou Fix For: 1.2
Version IoTDB master 6d30aa2022 Reproducing steps: List<String> paths = new ArrayList<>(); paths.add(null); paths.add("root.test"); // root.test 不存在 session.createTimeseriesUsingSchemaTemplate(paths); Bug Unable to find source-code formatter for language: codecontent panelcontent. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yamljava.lang.StringIndexOutOfBoundsException: String index out of range: -2147418111 at java.lang.String.checkBounds(String.java:381) at java.lang.String.<init>(String.java:462) at org.apache.thrift.protocol.TBinaryProtocol.readString(TBinaryProtocol.java:404) at org.apache.iotdb.service.rpc.thrift.TCreateTimeseriesUsingSchemaTemplateReq$TCreateTimeseriesUsingSchemaTemplateReqStandardScheme.read(TCreateTimeseriesUsingSchemaTemplateReq.java:422) at org.apache.iotdb.service.rpc.thrift.TCreateTimeseriesUsingSchemaTemplateReq$TCreateTimeseriesUsingSchemaTemplateReqStandardScheme.read(TCreateTimeseriesUsingSchemaTemplateReq.java:394) at org.apache.iotdb.service.rpc.thrift.TCreateTimeseriesUsingSchemaTemplateReq.read(TCreateTimeseriesUsingSchemaTemplateReq.java:334) at org.apache.iotdb.service.rpc.thrift.IClientRPCService$createTimeseriesUsingSchemaTemplate_args$createTimeseriesUsingSchemaTemplate_argsStandardScheme.read(IClientRPCService.java:48531) at org.apache.iotdb.service.rpc.thrift.IClientRPCService$createTimeseriesUsingSchemaTemplate_args$createTimeseriesUsingSchemaTemplate_argsStandardScheme.read(IClientRPCService.java:48516) at org.apache.iotdb.service.rpc.thrift.IClientRPCService$createTimeseriesUsingSchemaTemplate_args.read(IClientRPCService.java:48463) at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:23) 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:750) Expected result IoTDBConnectionException 或 StatementExecutionException -- This message was sent by Atlassian Jira (v8.20.10#820010)