karuppayya commented on code in PR #7253:
URL: https://github.com/apache/iceberg/pull/7253#discussion_r1154553707


##########
core/src/test/java/org/apache/iceberg/hadoop/HadoopFileIOTest.java:
##########
@@ -175,10 +181,16 @@ private List<Path> createRandomFiles(Path parent, int 
count) {
                 Path path = new Path(parent, "file-" + i);
                 paths.add(path);
                 fs.createNewFile(path);
+                createdFiles.increment();
               } catch (IOException e) {
                 throw new UncheckedIOException(e);
               }
             });
+
+    Awaitility.await()

Review Comment:
   nit:
   CountDownLatch could help too, but it would mean hadling 
InterruptedException in the method
   ```
       CountDownLatch latch = new CountDownLatch(count);
       random
           .ints(count)
           . parallel()
           .forEach(
               i -> {
                 try {
                   Path path = new Path(parent, "file-" + i);
                   paths.add(path);
                   fs.createNewFile(path);
                   latch.countDown();
                 } catch (IOException e) {
                   throw new UncheckedIOException(e);
                 }
               });
       latch.await();



-- 
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