Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在timeries下再创建子节点bug (Bug when creating another child node on a time serie node) #1354

Closed
aiping312 opened this issue Jun 12, 2020 · 3 comments
Assignees

Comments

@aiping312
Copy link

使用的是0.10版本。
在已有的timeries(root.ln.device1.s1)下再创建一个timeries,如root.ln.device1.s1.signal_value。在jdbc和cli下出现不同的结果。
1)JDBC下这么运行后 ,会造成服务卡死。打印的错误日志:
java.lang.ClassCastException: org.apache.iotdb.db.metadata.mnode.LeafMNode cannot be cast to org.apache.iotdb.db.metadata.mnode.InternalMNode

2)Cli下能成功执行,但是会将root.ln.device1.s1同级的timeries都屏蔽了,结果如下图:
IoTDB> show timeseries root.ln
+-------------+-----+-------------+--------+--------+-----------+
| timeseries|alias|storage group|dataType|encoding|compression|
+-------------+-----+-------------+--------+--------+-----------+
|root.ln.jgy.1| null| root.ln| FLOAT| GORILLA| SNAPPY|
|root.ln.jgy.2| null| root.ln| FLOAT| GORILLA| SNAPPY|
+-------------+-----+-------------+--------+--------+-----------+
Total line number = 2
It costs 0.022s
IoTDB> create timeseries root.ln.jgy.2.signal_value with datatype=FLOAT,encoding=GORILLA
IoTDB> show timeseries root.ln
+--------------------------+-----+-------------+--------+--------+-----------+
| timeseries|alias|storage group|dataType|encoding|compression|
+--------------------------+-----+-------------+--------+--------+-----------+
|root.ln.jgy.2.signal_value| null| root.ln| FLOAT| GORILLA| SNAPPY|
+--------------------------+-----+-------------+--------+--------+-----------+

这个是不是应该直接不允许在timeseries下再次创建timeseries

@JackieTien97 JackieTien97 self-assigned this Jun 12, 2020
@JackieTien97
Copy link
Contributor

JackieTien97 commented Jun 12, 2020

在master版本,我们支持了timeseries下再次创建timeseries,即允许root.sg1.d0.s1.s2的出现,我测试了一下,master版本并未出现同级timeseries覆盖的现象。
image

在rel/0.10版本下,我们不支持timeseries下再次创建timeseries,我也做了相同的测试,但是创建时会有报错提示,并不会创建成功
image

@JackieTien97
Copy link
Contributor

JackieTien97 commented Jun 12, 2020

你用的具体是哪个版本啊,是rel/0.10分支么,可以给一个具体的复现步骤吗?

@aiping312
Copy link
Author

你用的具体是哪个版本啊,是rel/0.10分支么,可以给一个具体的复现步骤吗?

我再基于最新的0.10打包再试一次看看

@jixuan1989 jixuan1989 changed the title 在timeries下再创建子节点bug 在timeries下再创建子节点bug (Bug when creating another child node on a time serie node) Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants