-
Notifications
You must be signed in to change notification settings - Fork 552
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
Added redpanda.virtual.cluster.id
topic property
#16714
Added redpanda.virtual.cluster.id
topic property
#16714
Conversation
9a2d1dd
to
13d0db5
Compare
081d4d1
to
f93278e
Compare
/dt |
f93278e
to
237d2e7
Compare
/dt |
ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/45496#018df53e-a963-4925-85b8-7a6eeedc3101 ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/45685#018e0e0b-253c-4a0b-8ff1-1e67335ddf8a ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/45685#018e0f1d-0fb3-472e-a100-372186bfc2f8 |
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.
lgtm, couple of nits.. not too familiar with the topic_manifest related changes, so someone else should take a look too.
src/v/config/configuration.cc
Outdated
, enable_mpx_extensions( | ||
*this, | ||
"enable_mpx_extensions", | ||
"Enable Redpanda extensions for MPX.", |
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.
nit: a bit more verbose description
|
||
static bool is_valid(const creatable_topic& c) { | ||
if (!config::shard_local_cfg().enable_mpx_extensions()) { | ||
return true; |
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.
nit: should this not be
return config_entries.find(topic_property_mpx_virtual_cluster_id) == config_entries.end();
or at least check for validity of property that it conforms to vcluster_id type (like in L326), otherwise I think there is a scope to sneak in garbage for this field.
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.
if the extensions are not enabled the field is ignored, so we do not need to validate it, there is no risk of storing garbage as the property value. I did it like this as when unknown property is sent to create topics request it is silently ignored. This way the logic in validator is consistent with what we already have.
`vcluster_id` type is going to have limited scope. We are going to need it in the cloud storage module, hence moving the type to `model` submodule. Signed-off-by: Michal Maslanka <michal@redpanda.com>
Added topic property that is a label used to provide an information about topic virtual cluster affiliation. Signed-off-by: Michal Maslanka <michal@redpanda.com>
98f2bf1
to
a3ebcf3
Compare
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.
LGTM seems pretty complete !
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.
looks good! just some suggestions
Added property marking topic virtual cluster affiliation. The virtual cluster property is different than other topic properties as it has no default. By default it is an empty optional. Signed-off-by: Michal Maslanka <michal@redpanda.com>
Signed-off-by: Michal Maslanka <michal@redpanda.com>
Signed-off-by: Michal Maslanka <michal@redpanda.com>
Signed-off-by: Michal Maslanka <michal@redpanda.com>
Signed-off-by: Michal Maslanka <michal@redpanda.com>
Signed-off-by: Michal Maslanka <michal@redpanda.com>
Signed-off-by: Michal Maslanka <michal@redpanda.com>
Signed-off-by: Michal Maslanka <michal@redpanda.com>
Signed-off-by: Michal Maslanka <michal@redpanda.com>
a3ebcf3
to
5852ac0
Compare
Added redpanda.virtual.cluster.id topic property which affiliates the topic with virtual cluster. The property is only settable during topic creation and can not be modified.
Backports Required
Release Notes