Yug Vajani created IOTDB-6352:
---------------------------------
Summary: Fix non deterministic tests
Key: IOTDB-6352
URL: https://issues.apache.org/jira/browse/IOTDB-6352
Project: Apache IoTDB
Issue Type: Test
Reporter: Yug Vajani
Attachments: image-2024-11-07-00-14-02-440.png,
image-2024-11-07-00-14-25-592.png, image-2024-11-07-00-14-52-413.png,
image-2024-11-07-00-15-29-700.png
I ran the NonDex tool on several tests to identify any nondeterministic
behavior, and I found three tests exhibiting this issue. NonDex operates by
systematically randomizing the iteration order of standard Java library classes
(e.g., {{{}HashSet{}}}, {{{}HashMap{}}}) during test execution. By altering the
order of elements each time tests are run, NonDex helps reveal potential bugs
caused by dependencies on specific ordering, which could lead to flaky or
unreliable tests.
Using this tool, I identified the following three tests as nondeterministic.
I've also attached a screenshot showing the cause of each test failure:
# {{ConfigMTreeTest.testGetAllFileNamesByPath}}
{{!image-2024-11-07-00-14-25-592.png|width=858,height=70!}}
# {{PathPatternTreeTest.testPathPatternTreeSplit}}
{{!image-2024-11-07-00-14-52-413.png|width=865,height=56!}}
# {{SessionCacheLeaderTest.testInsertTabletsWithSessionBroken}}
{{!image-2024-11-07-00-15-29-700.png|width=865,height=40!}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)