Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Reroute an index shard between nodes test is flaky #555

Closed
dblock opened this issue Sep 5, 2024 · 0 comments · Fixed by #556
Closed

[BUG] Reroute an index shard between nodes test is flaky #555

dblock opened this issue Sep 5, 2024 · 0 comments · Fixed by #556
Assignees
Labels
bug Something isn't working flaky test

Comments

@dblock
Copy link
Member

dblock commented Sep 5, 2024

What is the bug?

Cluster rerouting test is flaky.

https://github.com/opensearch-project/opensearch-api-specification/actions/runs/10720682021/job/29731120869?pr=552

ERROR   cluster/reroute.yaml (/home/runner/work/opensearch-api-specification/opensearch-api-specification/tests/routing/cluster/reroute.yaml)
    ERROR   CHAPTERS
        PASSED  Shows the allocation of shards in a cluster.
            PASSED  REQUEST BODY
            PASSED  RESPONSE STATUS
            PASSED  RESPONSE PAYLOAD BODY
            PASSED  RESPONSE PAYLOAD SCHEMA
            SKIPPED RESPONSE OUTPUT VALUES
        PASSED  Shows the allocation of shards in a cluster with parameters.
            PASSED  PARAMETERS
                PASSED  dry_run
                PASSED  explain
                PASSED  metric
                PASSED  retry_failed
            PASSED  REQUEST BODY
            PASSED  RESPONSE STATUS
            PASSED  RESPONSE PAYLOAD BODY
            PASSED  RESPONSE PAYLOAD SCHEMA
            SKIPPED RESPONSE OUTPUT VALUES
        ERROR   Reroute an index shard between nodes.
            PASSED  REQUEST BODY
            ERROR   RESPONSE STATUS (Expected status 200, ...)
            SKIPPED RESPONSE PAYLOAD BODY
            SKIPPED RESPONSE PAYLOAD SCHEMA
            SKIPPED RESPONSE OUTPUT VALUES

How can one reproduce the bug?

Try the test enough times.

cd tests/routing/
docker compose up
export OPENSEARCH_PASSWORD=myStrongPassword123!
npm run test:spec--insecure -- --tests tests/routing/cluster/reroute.yaml --verbose

What is the expected behavior?

Test to pass consistently.

What is your host/environment?

GHA

Do you have any screenshots?

https://github.com/opensearch-project/opensearch-api-specification/actions/runs/10720682021/job/29731120869?pr=552

@dblock dblock added bug Something isn't working untriaged labels Sep 5, 2024
@dblock dblock changed the title [BUG] [BUG] Reroute an index shard between nodes test is flaky Sep 5, 2024
@dblock dblock self-assigned this Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working flaky test
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant