rdblue commented on a change in pull request #3663:
URL: https://github.com/apache/iceberg/pull/3663#discussion_r774777193



##########
File path: core/src/test/java/org/apache/iceberg/hadoop/TestHadoopCommits.java
##########
@@ -419,4 +424,29 @@ public void testCanReadOldCompressedManifestFiles() throws 
Exception {
     List<FileScanTask> tasks = 
Lists.newArrayList(reloaded.newScan().planFiles());
     Assert.assertEquals("Should scan 1 files", 1, tasks.size());
   }
+
+  @Test
+  public void testConcurrentAppend() throws Exception {
+    assertTrue("Should create v1 metadata",
+            version(1).exists() && version(1).isFile());
+    File dir = temp.newFolder();
+    dir.delete();
+    int threadsCount = 5;
+    Table tableWithHighRetries = TABLES.create(SCHEMA, SPEC, new 
HashMap<String, String>() {
+      {
+        put(TableProperties.COMMIT_NUM_RETRIES, String.valueOf(threadsCount));

Review comment:
       Instead of `new HashMap`, we prefer `Maps.newHashMap` in most cases. But 
here, you can use `ImmutableMap` to more succinctly create a map: 
`ImmutableMap.of(COMMIT_NUM_RETRIES, String.valueOf(threadsCount))`.




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