Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce index lock in segmentwise recompression #6558

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

antekresic
Copy link
Contributor

Segmentwise recompression grabbed an AccessExclusiveLock on the compressed chunk index. This would block all read operations on the chunk which involved said index. Reducing the lock to ExclusiveLock would allow reads, removing blocks from other ongoing operations.

Fixes #6523

@antekresic antekresic added this to the TimescaleDB 2.14 milestone Jan 22, 2024
@antekresic antekresic self-assigned this Jan 22, 2024
Copy link

codecov bot commented Jan 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0b23bab) 79.74% compared to head (ed95212) 79.75%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6558   +/-   ##
=======================================
  Coverage   79.74%   79.75%           
=======================================
  Files         188      188           
  Lines       36734    36688   -46     
  Branches     9288     9271   -17     
=======================================
- Hits        29294    29260   -34     
- Misses       3106     3110    +4     
+ Partials     4334     4318   -16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@antekresic antekresic marked this pull request as ready for review January 22, 2024 13:41
Segmentwise recompression grabbed an AccessExclusiveLock on
the compressed chunk index. This would block all read operations
on the chunk which involved said index. Reducing the lock to
ExclusiveLock would allow reads, removing blocks from other
ongoing operations.
@antekresic antekresic merged commit 80f1b23 into timescale:main Jan 23, 2024
44 checks passed
@antekresic antekresic deleted the reduce-recompression-lock branch January 23, 2024 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement]: Reduce locking level on compressed chunk index during segmentwise recompression
3 participants