peterxcli commented on code in PR #8270: URL: https://github.com/apache/ozone/pull/8270#discussion_r2044366917
########## 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: Oh sorry, I got it, the `RandomUtils.nextBytes(1))` would cause spotbugs error. -- 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: issues-unsubscr...@ozone.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For additional commands, e-mail: issues-h...@ozone.apache.org