From c5e588fd34aafea5f5a7c1068f9099597126cf04 Mon Sep 17 00:00:00 2001 From: Rishabh Patel Date: Thu, 23 Jan 2025 18:33:47 -0800 Subject: [PATCH] HDDS-12094. Refactor for checkstyle error --- .../hadoop/ozone/client/rpc/OzoneRpcClientTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/OzoneRpcClientTests.java b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/OzoneRpcClientTests.java index a58c45e890a..f195199e8fa 100644 --- a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/OzoneRpcClientTests.java +++ b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/OzoneRpcClientTests.java @@ -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);