Skip to content

Commit

Permalink
Merge pull request #2 from marmbrus/pr/5333
Browse files Browse the repository at this point in the history
Correctly lock on MetastoreCatalog
  • Loading branch information
yhuai committed Apr 2, 2015
2 parents d6fc32f + e4a9b0b commit 7667030
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 7667030

Please sign in to comment.