apache / apache/fluss

[Test] TableManagerITCase.testPartitionedTableManagement is not stable

Open
#144 4 comments 0 reactions 0 assignees View on GitHub
component=test good first issue
Dominant language
Java
Stars
2.1k
Forks
625
Avg merge
3d 14h
Merged PRs (30d)
97

Description

Two unstable error in this test:

1. `Error: Failures: Error: TableManagerITCase.testPartitionedTableManagement:379->lambda$testPartitionedTableManagement$11:381 Expecting an empty Optional but was containing value: {0=[0], 1=[1], 2=[2], 3=[0], 4=[1], 5=[2], 6=[0], 7=[1], 8=[2], 9=[0], 10=[1], 11=[2], 12=[0], 13=[1], 14=[2], 15=[0]} `

2. Error: Tests run: 15, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 75.599 s <<< FAILURE! - in com.alibaba.fluss.server.coordinator.TableManagerITCase
Error: com.alibaba.fluss.server.coordinator.TableManagerITCase.testPartitionedTableManagement(AutoPartitionTimeUnit)[1] Time elapsed: 60.041 s <<< FAILURE!
java.lang.AssertionError: partition is not created
at com.alibaba.fluss.testutils.common.CommonTestUtils.waitUtil(CommonTestUtils.java:80)
at com.alibaba.fluss.testutils.common.CommonTestUtils.waitUtil(CommonTestUtils.java:98)
at com.alibaba.fluss.testutils.common.CommonTestUtils.waitValue(CommonTestUtils.java:112)
at com.alibaba.fluss.server.coordinator.TableManagerITCase.testPartitionedTableManagement(TableManagerITCase.java:358)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with com.alibaba.fluss.server.coordinator.TableManagerITCase.testPartitionedTableManagement, especially lines 358 and 379, and inspect the waitValue calls in CommonTestUtils.java. Reproduce the failing test and trace both the missing partition and unexpected Optional; done means the test passes reliably for the partitioned-table cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases, distributed-systems, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.