Skip to content

Commit

Permalink
Synchronize listing tables in file metastore
Browse files Browse the repository at this point in the history
This is to prevent listing tables failures when tables dropped
concurrently. This also fixes IDE warning about synchronization not
matching `@GuardedBy` annotations.
  • Loading branch information
findepi authored and wendigo committed Mar 18, 2024
1 parent a12eaeb commit 0219059
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ public synchronized void updatePartitionStatistics(Table table, StatisticsUpdate
}

@Override
public List<TableInfo> getTables(String databaseName)
public synchronized List<TableInfo> getTables(String databaseName)
{
return listAllTables(databaseName);
}
Expand Down

0 comments on commit 0219059

Please sign in to comment.