Skip to content

Commit

Permalink
Correctly lock on MetastoreCatalog
Browse files Browse the repository at this point in the history
  • Loading branch information
marmbrus committed Apr 2, 2015
1 parent d6fc32f commit e4a9b0b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private[hive] class HiveMetastoreCatalog(hive: HiveContext) extends Catalog with
val cacheLoader = new CacheLoader[QualifiedTableName, LogicalPlan]() {
override def load(in: QualifiedTableName): LogicalPlan = {
logDebug(s"Creating new cached data source for $in")
val table = synchronized {
val table = HiveMetastoreCatalog.this.synchronized {
client.getTable(in.database, in.name)
}
val userSpecifiedSchema =
Expand Down

0 comments on commit e4a9b0b

Please sign in to comment.