Skip to content

[test] FlussAuthorizationITCase leaks server tag state#3704

Description

@litiliu

Search before asking

  • I searched the issues and found nothing similar.

Fluss version

main (development)

Please describe the bug 馃悶

FlussAuthorizationITCase.testAddServerTag adds the PERMANENT_OFFLINE tag to tablet server 0 and starts removing it during cleanup, but does not wait for the returned future.

The next test can therefore create its default replication-factor-3 table while the coordinator still considers only two tablet servers available. This causes InvalidReplicationFactorException: Replication factor: 3 larger than available tablet servers: 2 and may fail several subsequent test setups.

Solution

Wait for removeServerTag(...) to complete before testAddServerTag returns, ensuring the cluster state is restored before the next test starts.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions