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

Backport #3233 #3248

Merged
merged 4 commits into from
Dec 13, 2021
Merged

Backport #3233 #3248

merged 4 commits into from
Dec 13, 2021

Conversation

Lazin
Copy link
Contributor

@Lazin Lazin commented Dec 13, 2021

This PR back ports #3233 - Add global shadow indexing flags.

Previously, when both flags (redpanda.remoe.read and
redpanda.remote.write) are set and alter-config drops one both are
dropped.

After the fix flags can be dropped individually.

Thic commit also adds a regression ducktape test.

(cherry picked from commit 6c06dc9)
Add two new cluster level configs:
- cloud_storage_enable_remote_read
- cloud_storage_enable_remote_write

The parameters can be used to enable shadow indexing (both archival
uploads and shadow indexing fetch) for all topics. The topic level
configurations (redpanda.remote.read and redpanda.remote.write) act as
an override for the global parameters.

The overrides can be used to enable shadow indexing (or its part) if
shadow indexing is disabled in the config. And also the topic level
overrides can be used to disabled shadow indexing for the topic if
shadow indexing is enabled in the config.

(cherry picked from commit 1838db9)
Add alter-config test that checks that the topic is described correctly
if shadow indexing is enabled globally. Also, the test checks if shadow
indexing can be disabled for a topic if it's enabled globally.

Also, update e2e_shadow_indexing_test to use global settings instead of
per topic configurations. This verifies that shadow indexing can be
enabled globally.

(cherry picked from commit 7bf31aa)
The test verifies that the flags can be dropped.

(cherry picked from commit f1bd459)
@dotnwat dotnwat merged commit 0925b3a into redpanda-data:v21.11.x Dec 13, 2021
@andrewhsu andrewhsu added this to the v21.11.3 milestone Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants