peterxcli commented on code in PR #8270:
URL: https://github.com/apache/ozone/pull/8270#discussion_r2044363626


##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/fs/ozone/AbstractRootedOzoneFileSystemTest.java:
##########
@@ -342,12 +343,10 @@ void testListStatusWithIntermediateDirWithECEnabled()
     String key = "object-dir/object-name1";
 
     // write some test data into bucket
-    try (OzoneOutputStream outputStream = objectStore.getVolume(volumeName).
-            getBucket(bucketName).createKey(key, 1,
-                    new ECReplicationConfig("RS-3-2-1024k"),
-                    new HashMap<>())) {
-      outputStream.write(RandomUtils.nextBytes(1));
-    }
+    byte[] bytes = new byte[1];
+    random.nextBytes(bytes);
+    
TestDataUtil.createKey(objectStore.getVolume(volumeName).getBucket(bucketName), 
key,
+        new ECReplicationConfig("RS-3-2-1024k"), bytes);

Review Comment:
   I think we don't need to use secure here, or you just want to avoid the 
`deprecated` warning?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to