Chih-Yu Huang created IOTDB-6357:
------------------------------------
Summary: [datanode] AlignByDeviceOrderByLimitOffsetTest could fail
nondeterministically
Key: IOTDB-6357
URL: https://issues.apache.org/jira/browse/IOTDB-6357
Project: Apache IoTDB
Issue Type: Bug
Environment: OS: Ubuntu 22.04
IoTDB: master @ d719d46
Java 17, Apache Maven 3.8.7
Reporter: Chih-Yu Huang
Fix For: master branch
A group of JUnit tests under
{{org.apache.iotdb.db.queryengine.plan.planner.distribution.AlignByDeviceOrderByLimitOffsetTest}}
methods {{{}orderByDeviceTest1{}}}, {{{}orderByDeviceTest2{}}},
{{{}orderByDeviceTest3{}}}, and {{{}orderByDeviceTest4{}}}. The tests could
fail nondeterministically because they asserted exact child-index positions in
the logical-plan tree.
Planner variations (region splits, optimisations) sometimes insert a different
node type or reorder children, triggering a test bug.
I use {{nondex}} to reproduce the error. Failed in nondexSeed=933178, 974622.
{code:java}
mvn -pl iotdb-core/datanode edu.illinois:nondex-maven-plugin:2.1.7:nondex
-Dtest=org.apache.iotdb.db.queryengine.plan.planner.distribution.AlignByDeviceOrderByLimitOffsetTest#orderByDeviceTest4
-Dnondexruns=10{code}
The bugs under these four methods are alike, so I only provide one of them.
{code:java}
org.apache.iotdb.db.queryengine.plan.planner.distribution.AlignByDeviceOrderByLimitOffsetTest.orderByDeviceTest4
-- Time elapsed: 1.547 s <<< FAILURE!
java.lang.AssertionError{code}
I provide other details in https://github.com/apache/iotdb/issues/16593
--
This message was sent by Atlassian Jira
(v8.20.10#820010)