Skip to content

tests: handle ambiguous collection retries in cluster#392

Merged
apetenchea merged 1 commit intomainfrom
flaky-test
Apr 6, 2026
Merged

tests: handle ambiguous collection retries in cluster#392
apetenchea merged 1 commit intomainfrom
flaky-test

Conversation

@apetenchea
Copy link
Copy Markdown
Member

In cluster runs, creating an autoincrement collection can fail with 503 while the collection creation has already gone through during a coordinator or shard leadership change.

The test then retries with the same collection name, gets 409 responses, and eventually reports a false failure.

This is not an autoincrement bug itself. The problem is that the test treats every CollectionCreateError as a hard create failure and never checks whether the collection became visible after the error.

…uster

In cluster runs, creating an autoincrement collection can fail with 503 while the collection creation has already gone through during a coordinator or shard leadership change.

The test then retries with the same collection name, gets 409 responses, and eventually reports a false failure.

This is not an autoincrement bug itself. The problem is that the test treats every CollectionCreateError as a hard create failure and never checks whether the collection became visible after the error.
@apetenchea apetenchea self-assigned this Apr 6, 2026
@apetenchea apetenchea merged commit eadcff6 into main Apr 6, 2026
10 checks passed
@apetenchea apetenchea deleted the flaky-test branch April 6, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant