rdblue commented on a change in pull request #1446:
URL: https://github.com/apache/iceberg/pull/1446#discussion_r488091091
##########
File path: core/src/main/java/org/apache/iceberg/DeleteFileIndex.java
##########
@@ -76,7 +76,7 @@
ImmutableMap.Builder<Integer, Types.StructType> builder =
ImmutableMap.builder();
specsById.forEach((specId, spec) -> builder.put(specId,
spec.partitionType()));
this.partitionTypeById = builder.build();
- this.wrapperById = Maps.newHashMap();
+ this.wrapperById = Maps.newConcurrentMap();
Review comment:
Is there an advantage to using a Caffeine cache here? I think it most
cases, we use a cache when we need more features than just `computeIfAbsent`,
like invalidation and expiration. We should probably prefer using standard JVM
classes to libraries like Caffeine where possible.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]