Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle NotInitialized::ShuttingDown error in shard split (#8506)
There is a race condition between timeline shutdown and the split task. Timeline shutdown first shuts down the upload queue, and only then fires the cancellation token. A parallel running timeline split operation might thus encounter a cancelled upload queue before the cancellation token is fired, and print a noisy error. Fix this by mapping `anyhow::Error{ NotInitialized::ShuttingDown }) to `FlushLayerError::Cancelled` instead of `FlushLayerError::Other(_)`. Fixes #8496
- Loading branch information
8e02db1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3132 tests run: 3011 passed, 0 failed, 121 skipped (full report)
Flaky tests (1)
Postgres 14
test_sharding_split_compaction[None]
: releaseCode coverage* (full report)
functions
:32.7% (7002 of 21414 functions)
lines
:50.1% (55805 of 111282 lines)
* collected from Rust tests only
8e02db1 at 2024-07-26T01:09:58.861Z :recycle: