-
Notifications
You must be signed in to change notification settings - Fork 698
config: add gets_restored tag to properties #25105
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
Conversation
I intend on adding a test and would prefer it being a GTest.
Cluster properties that _don't_ get restored during cluster restore were previously managed in a static list in the cluster restore reconciler. This made it easy to miss when adding new properties. As a step towards making this list more future proof, this commit adds a gets_restored flag to property metadata, and updates the reconciler to generate its list dynamically based on the cluster's current properties. The generated list is identical to the one previously defined in the reconciler.
dotnwat
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems ok to have the aliases, but they aren't real configuration option names, so i'm not sure if that has any kind of downstream affect.
| for (const auto& alias : prop.aliases()) { | ||
| ignore_list.emplace(alias); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will aliases matter or would aliases cause problems? afaik they aren't actually strings that are ever serialized to disk/wire, and they only exist as strings in the binary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea good question. I added aliases because aliasing is one way we implement renames of properties. Since the restored controller snapshots may exist from older versions of Redpanda, for such properties, there's no guarantee that the snapshotted names will be identical to the used in the latest version of Redpanda.
CI test resultstest results on build#61981
|
…ve access to a consistent set of tools (#99) * Add a doc-tools CLI command so that writers and our tests have access to a consistent set of tools * Bump version * Add submodule * Add tree-sitter-cpp submodule * Add tree-sitter-c grammar as dependency of C++ parser * Add tree-sitter-c grammar as required by tree-sitter-cpp * Add property automation to CLI * Add CLI help * doc-tools CLI * Remove tree‑sitter‑cpp submodule; clone on demand instead * Fix paths * Fix makefile * Update package.json * Update package-lock.json * Fix packages * Cleanup * Apply suggestions from code review Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Refactor * Add Iceberg support in test cluster * Fix error * Apply suggestions from code review Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Final fixes * Apply suggestions * Add support for the new gets_restored metadata introduced in redpanda-data/redpanda#25105 * Add fetch command for saving files from other repos locally * Apply suggestions from code review Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Add support for a --diff flag --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Add a doc-tools CLI command so that writers and our tests have access to a consistent set of tools * Bump version * Add submodule * Add tree-sitter-cpp submodule * Add tree-sitter-c grammar as dependency of C++ parser * Add tree-sitter-c grammar as required by tree-sitter-cpp * Add property automation to CLI * Add CLI help * doc-tools CLI * Remove tree‑sitter‑cpp submodule; clone on demand instead * Fix paths * Fix makefile * Update package.json * Update package-lock.json * Fix packages * Cleanup * Apply suggestions from code review Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Refactor * Add Iceberg support in test cluster * Fix error * Apply suggestions from code review Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Final fixes * Apply suggestions * Add support for the new gets_restored metadata introduced in redpanda-data/redpanda#25105 * Add fetch command for saving files from other repos locally * Apply suggestions from code review Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Add support for a --diff flag * Use tags for Redpanda labs * Add symlink util for labs to the CLI * Remove utils --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Cluster properties that don't get restored during cluster restore were
previously managed in a static list in the cluster restore reconciler.
This made it easy to miss when adding new properties.
As a step towards making this list more future proof, this commit adds a
gets_restored flag to property metadata, and updates the reconciler to
generate its list dynamically based on the cluster's current properties.
The generated list is identical to the one previously defined in the
reconciler.
There are no major functional changes in this PR.
Backports Required
Release Notes