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] Intermittent test failure - Snapshot and Restore with repository-s3 #4069

Closed
dreamer-89 opened this issue Aug 1, 2022 · 2 comments
Closed
Labels
bug Something isn't working flaky-test Random test failure that succeeds on second run >test-failure Test failure from CI, local build, etc.

Comments

@dreamer-89
Copy link
Member

dreamer-89 commented Aug 1, 2022

Describe the bug

20_repository_permanent_credentials/Snapshot and Restore with repository-s3 started failing recently on CI server.
This test fails while trying to createa a snapshot with 400 Bad Request snapshot with the same name already exists

org.opensearch.repositories.s3.RepositoryS3ClientYamlTestSuiteIT > test {yaml=repository_s3/20_repository_permanent_credentials/Snapshot and Restore with repository-s3 using permanent credentials} FAILED
    java.lang.AssertionError: Failure at [repository_s3/20_repository_permanent_credentials:152]: expected [2xx] status code but api [snapshot.create] returned [400 Bad Request] 
[{"error":{"root_cause":[{"type":"invalid_snapshot_name_exception","reason":"[repository_permanent:snapshot-one] Invalid snapshot name [snapshot-one], snapshot with the same name already exists","stack_trace":"InvalidSnapshotNameException[[repository_permanent:snapshot-one] Invalid snapshot name [snapshot-one], snapshot with the same name already exists]
org.opensearch.snapshots.SnapshotsService.ensureSnapshotNameAvailableInRepo(SnapshotsService.java:689)
org.opensearch.snapshots.SnapshotsService$2.execute(SnapshotsService.java:428)
org.opensearch.repositories.blobstore.BlobStoreRepository$1.execute(BlobStoreRepository.java:430)
@dblock
Copy link
Member

dblock commented Nov 8, 2022

#5143

@dblock
Copy link
Member

dblock commented Nov 11, 2022

Breaking out each test failure in the yaml test separately, #5219

@dblock dblock closed this as completed Nov 11, 2022
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 Random test failure that succeeds on second run >test-failure Test failure from CI, local build, etc.
Projects
None yet
Development

No branches or pull requests

3 participants