forked from timescale/timescaledb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In ae21ee9 we fixed a race condition when running a query to get the hypertable sizes and one or more chunks was dropped in a concurrent session leading to exception because the chunks does not exist. In fact the table lock introduced is useless because we also added proper joins with Postgres catalog tables to ensure that the relation exists in the database when calculating the sizes. And even worse with this table lock now dropping chunks wait for the functions that calculate the hypertable sizes. Fixed it by removing the useless table lock and also added isolation tests to make sure we'll not end up with race conditions again.
- Loading branch information
1 parent
49121ae
commit 0254abd
Showing
4 changed files
with
50 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters