Skip to content

Commit

Permalink
Decrease bucket prefix to not exceed max bucket size allowed (#708) (#…
Browse files Browse the repository at this point in the history
…711)

(cherry picked from commit 1518bae)
  • Loading branch information
Deependra-Patel authored Feb 3, 2022
1 parent 8135255 commit 6c38292
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ public TestBucketHelper(String bucketPrefix) {

private static String makeBucketName(String prefix) {
String username = System.getProperty("user.name", "unknown").replace("-", "");
username = username.substring(0, Math.min(username.length(), 10));
String uuidSuffix = UUID.randomUUID().toString().substring(0, 8);
username = username.substring(0, Math.min(username.length(), 9));
String uuidSuffix = UUID.randomUUID().toString().substring(0, 6);
return prefix + DELIMITER + username + DELIMITER + uuidSuffix;
}

Expand Down

0 comments on commit 6c38292

Please sign in to comment.