Skip to content

Commit

Permalink
refactor(qa): retry bucket creation in case of 503
Browse files Browse the repository at this point in the history
(cherry picked from commit 4bb4726)
  • Loading branch information
npepinpe authored and github-actions[bot] committed Nov 15, 2023
1 parent bc38faf commit 8fd92b9
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,13 @@ void beforeEach() {
store = new S3BackupStore(config);

try (final var client = S3BackupStore.buildClient(config)) {
client.createBucket(builder -> builder.bucket(config.bucketName()).build()).join();
// it's possible to query to fast and get a 503 from the server here, so simply retry after
Awaitility.await("unil bucket is created")
.untilAsserted(
() ->
client
.createBucket(builder -> builder.bucket(config.bucketName()).build())
.join());
}

// we have to configure the cluster here, after minio is started, as otherwise we won't have
Expand Down

0 comments on commit 8fd92b9

Please sign in to comment.