stuck cloud-storage readers with chunked reads enabled #16465
Labels
area/cloud-storage
Shadow indexing subsystem
kind/bug
Something isn't working
sev/high
loss of availability, pathological performance degradation, recoverable corruption
Version & Environment
23.2.24
What went wrong?
cloud-storage readers were getting stuck..
More in depth analysis has been done internally (please add/also please change title if it ends up not being chunked reads)..
cloud-storage is creating a reader and this reader is trying to acquire a segment_reader_units semaphore.
This semaphore limits number of segment readers that can be simultaneously created.
Disabling chunk reads via
cloud_storage_disable_chunk_reads=true
and restarting the broker cleared the issue
What should have happened instead?
Don't get stuck when chunked reads are enabled
How to reproduce the issue?
Have not reproduced at this point
Additional information
Messages such as these were observed with DEBUG :
DEBUG 2024-02-02 08:39:49,166 [shard 20] cloud_storage - materialized_resources.cc:379 - Materialized segment {kafka/request/95} base-offset 321713857 is not stale: 2 readers=0
JIRA Link: CORE-1752
The text was updated successfully, but these errors were encountered: