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.1.x] cluster: fix partition::may_read_from_cloud() for remote read replicas (manual backport) #22887

Merged

Conversation

WillemKauf
Copy link
Contributor

@WillemKauf WillemKauf commented Aug 14, 2024

Manual backport of #22868.

Conflict with Boost -> GTest migration that occurred in cloud_storage_e2e_test.cc post version v24.2.x.

Fixes #22884.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v24.2.x
  • v24.1.x
  • v23.3.x

Release Notes

  • none

@WillemKauf WillemKauf added the kind/backport PRs targeting a stable branch label Aug 14, 2024
`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)
@WillemKauf
Copy link
Contributor Author

Force push to

  • fix include conflict with archival/archival_metadata_stm.h
  • add read_replica_fixture.h due to linking errors. dev should and v24.1.x should see the same fixture added.

@piyushredpanda
Copy link
Contributor

#17206

@piyushredpanda piyushredpanda merged commit 7ccf903 into redpanda-data:v24.1.x Aug 15, 2024
14 of 17 checks passed
@BenPope BenPope added this to the v24.1.15 milestone Aug 20, 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.

4 participants