Skip to content

Commit 7667030

Browse files
committed
Merge pull request #2 from marmbrus/pr/5333
Correctly lock on MetastoreCatalog
2 parents d6fc32f + e4a9b0b commit 7667030

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ private[hive] class HiveMetastoreCatalog(hive: HiveContext) extends Catalog with
6767
val cacheLoader = new CacheLoader[QualifiedTableName, LogicalPlan]() {
6868
override def load(in: QualifiedTableName): LogicalPlan = {
6969
logDebug(s"Creating new cached data source for $in")
70-
val table = synchronized {
70+
val table = HiveMetastoreCatalog.this.synchronized {
7171
client.getTable(in.database, in.name)
7272
}
7373
val userSpecifiedSchema =

0 commit comments

Comments
 (0)