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

cluster/config_manager: ensure cleanup of old aliases #15815

Merged
merged 3 commits into from
Dec 20, 2023

Conversation

andijcr
Copy link
Contributor

@andijcr andijcr commented Dec 20, 2023

Config aliases:

Part of the fix for #15263 requires ensuring that a cluster property is saved only once in the config_manager::_raw_values map.

When storing a property, the name is converted to the main property name and any aliases are removed from the map, in case the node inherits the snapshot from an old version.

the fix make sure that the cleanup part is always performed, before this it would be skipped the incoming key was already the main name

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
  • v23.3.x
  • v23.2.x
  • v23.1.x

Release Notes

  • none

fix: if storing the proper name, the cleanup would be skipped
@andijcr andijcr force-pushed the fix/cleanup_config_translation branch from afea16c to 354cfd8 Compare December 20, 2023 16:24
@piyushredpanda piyushredpanda added this to the v23.3.1-rc5 milestone Dec 20, 2023
@andijcr
Copy link
Contributor Author

andijcr commented Dec 20, 2023

/dt

Copy link
Contributor

@rockwotj rockwotj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines 1417 to 1418
# NOTE due to https://github.com/redpanda-data/redpanda/issues/13432 ,
# test_values can't be -1 (a valid value nonetheless to signal infinite value)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the right spot for this comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right it makes more sense before log_retention_ms. Will do in a followup

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

@andijcr andijcr merged commit 02289b2 into redpanda-data:dev Dec 20, 2023
20 checks passed
@vbotbuildovich
Copy link
Collaborator

/backport v23.3.x

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

4 participants