cloud-fan commented on a change in pull request #23539: [SPARK-26617][SQL] 
Cache manager locks
URL: https://github.com/apache/spark/pull/23539#discussion_r250037712
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/CacheManager.scala
 ##########
 @@ -225,7 +244,7 @@ class CacheManager extends Logging {
    * Tries to re-cache all the cache entries that contain `resourcePath` in 
one or more
    * `HadoopFsRelation` node(s) as part of its logical plan.
    */
-  def recacheByPath(spark: SparkSession, resourcePath: String): Unit = 
writeLock {
+  def recacheByPath(spark: SparkSession, resourcePath: String): Unit = 
readLock {
 
 Review comment:
   do we need to use any lock here?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to