Skip to content

flaky test assertions in org.apache.helix.rest.metadatastore.TestZkMetadataStoreDirectory #2645

@hofi1

Description

@hofi1

Describe the bug

The test assertions in org.apache.helix.rest.metadatastore.TestZkMetadataStoreDirectory#testGetAllMetadataStoreRealms and org.apache.helix.rest.metadatastore.TestZkMetadataStoreDirectory#testGetAllShardingKeys are flaky.
These tests compare two sets for containing the same elements in the same order – but it is not deterministic in which order the elements are returned from a set – resulting in a flaky test.

To Reproduce

run:

mvn -pl helix-rest edu.illinois:nondex-maven-plugin:2.1.1:nondex -Dtest=org.apache.helix.rest.metadatastore.TestZkMetadataStoreDirectory

Expected behavior

Test should not be flaky – it should pass or fail (in the current case it should pass)

Additional context

non

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions