Github user caneGuy commented on a diff in the pull request: https://github.com/apache/spark/pull/20667#discussion_r170864215 --- Diff: core/src/main/scala/org/apache/spark/storage/BlockManagerId.scala --- @@ -132,10 +133,15 @@ private[spark] object BlockManagerId { getCachedBlockManagerId(obj) } - val blockManagerIdCache = new ConcurrentHashMap[BlockManagerId, BlockManagerId]() + val blockManagerIdCache = CacheBuilder.newBuilder() --- End diff -- I think it is thread-safe which i refer from: https://google.github.io/guava/releases/22.0/api/docs/com/google/common/cache/LoadingCache.html and https://stackoverflow.com/questions/11124856/using-guava-for-high-performance-thread-safe-caching
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org