You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "xiaozhihong (Jira)" <ji...@apache.org> on 2023/03/16 08:22:00 UTC

[jira] [Created] (IOTDB-5685) Failed to create a time series on an existing path when ReadOnly state

xiaozhihong created IOTDB-5685:
----------------------------------

             Summary: Failed to create a time series on an existing path when ReadOnly state
                 Key: IOTDB-5685
                 URL: https://issues.apache.org/jira/browse/IOTDB-5685
             Project: Apache IoTDB
          Issue Type: Bug
          Components: Core/Schema Manager
    Affects Versions: master, 1.1.0-SNAPSHOT
            Reporter: xiaozhihong
            Assignee: Yukun Zhou
         Attachments: image-2023-03-16-16-18-36-230.png, log_confignode_all.log, log_datanode_all.log

Branch : Master and Rel/1.1.0
When the system status is readONLY, a null error is reported when creating a time series on an existing path.


{code:java}
---------------------
Starting IoTDB Cli
---------------------
 _____       _________  ______   ______    
|_   _|     |  _   _  ||_   _ `.|_   _ \   
  | |   .--.|_/ | | \_|  | | `. \ | |_) |  
  | | / .'`\ \  | |      | |  | | |  __'.  
 _| |_| \__. | _| |_    _| |_.' /_| |__) | 
|_____|'.__.' |_____|  |______.'|_______/  version 1.1.0-SNAPSHOT (Build: 1139928)
                                           Successfully login at 127.0.0.1:6667
IoTDB> insert into root.sg.d1(time,s1) values(1,1)
Msg: The statement is executed successfully.
IoTDB> select * from root.sg.d1;
+-----------------------------+-------------+
|                         Time|root.sg.d1.s1|
+-----------------------------+-------------+
|1970-01-01T08:00:00.001+08:00|          1.0|
+-----------------------------+-------------+
Total line number = 1
It costs 0.264s
IoTDB> set system to readonly;
Msg: The statement is executed successfully.
IoTDB> show cluster;
+------+----------+--------+---------------+------------+
|NodeID|  NodeType|  Status|InternalAddress|InternalPort|
+------+----------+--------+---------------+------------+
|     0|ConfigNode| Running|      127.0.0.1|       10710|
|     1|  DataNode|ReadOnly|      127.0.0.1|       10730|
+------+----------+--------+---------------+------------+
Total line number = 2
It costs 0.028s
IoTDB> insert into root.sg.d1(time,s1) values(2,1)
Msg: 600: Fail to do non-query operations because system is read-only.
IoTDB> create timeseries root.sg.d1.s2 with datatype=INT32,encoding=RLE;
Msg: 301: null 
IoTDB> show cluster;
+------+----------+--------+---------------+------------+
|NodeID|  NodeType|  Status|InternalAddress|InternalPort|
+------+----------+--------+---------------+------------+
|     0|ConfigNode| Running|      127.0.0.1|       10710|
|     1|  DataNode|ReadOnly|      127.0.0.1|       10730|
+------+----------+--------+---------------+------------+
Total line number = 2
It costs 0.004s {code}
!image-2023-03-16-16-18-36-230.png|width=552,height=260!



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