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

[v24.2.x] [CORE-6898] cluster: fix partition::may_read_from_cloud() for remote read replicas #22885

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #22868

`may_read_from_cloud()` was modified with a sanity check with
`remote_fetch_enabled()` to assert that `remote.read` is enabled for a
topic before serving a timequery from cloud storage. However, it failed
to consider the case of a remote read replica, which should always be
able to read from cloud.

Fix the condition by adding an `or` statement to `may_read_from_cloud()`
which checks `is_read_replica_mode_enabled()`.

(cherry picked from commit c1c287a)
@vbotbuildovich vbotbuildovich added this to the v24.2.x-next milestone Aug 14, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Aug 14, 2024
@piyushredpanda piyushredpanda merged commit 0412d29 into redpanda-data:v24.2.x Aug 15, 2024
19 checks passed
@piyushredpanda piyushredpanda modified the milestones: v24.2.x-next, v24.2.3 Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants