Skip to content

Commit

Permalink
HDDS-12094. Refactor for checkstyle error
Browse files Browse the repository at this point in the history
  • Loading branch information
ptlrs committed Jan 24, 2025
1 parent e285f7a commit c5e588f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2844,18 +2844,18 @@ public void testListKeyDirectoriesAreNotFiles()
throws IOException {
// Test that directories in multilevel keys are not marked as files

String volumeA = "vol-a-" + RandomStringUtils.randomNumeric(5);
String bucketA = "buc-a-" + RandomStringUtils.randomNumeric(5);
String volumeA = "volume-a-" + RandomStringUtils.randomNumeric(5);
String bucketA = "bucket-a-" + RandomStringUtils.randomNumeric(5);
store.createVolume(volumeA);
OzoneVolume volA = store.getVolume(volumeA);
volA.createBucket(bucketA);
OzoneBucket volAbucketA = volA.getBucket(bucketA);

String keyBaseC = "key-c/";
String keyBaseA = "key-a/";
for (int i = 0; i < 10; i++) {
byte[] value = RandomStringUtils.randomAscii(10240).getBytes(UTF_8);
OzoneOutputStream one = volAbucketA.createKey(
keyBaseC + i + "-" + RandomStringUtils.randomNumeric(5),
keyBaseA + i + "-" + RandomStringUtils.randomNumeric(5),
value.length, RATIS, ONE,
new HashMap<>());
one.write(value);
Expand Down

0 comments on commit c5e588f

Please sign in to comment.