HeartSaVioR commented on code in PR #47778: URL: https://github.com/apache/spark/pull/47778#discussion_r1721824474
########## sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/RocksDB.scala: ########## @@ -166,6 +170,83 @@ class RocksDB( @GuardedBy("acquireLock") @volatile private var acquiredThreadInfo: AcquiredThreadInfo = _ + // This is accessed and updated only between load and acquire + // which means it is implicitly guarded by acquireLock + @GuardedBy("acquireLock") + private val colFamilyNameToIdMap = new ConcurrentHashMap[String, Short]() + + @GuardedBy("acquireLock") + private val defaultColumnFamilyIdMapping = Review Comment: I meant the value of element in the map, in case you might be confused. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org