-
Notifications
You must be signed in to change notification settings - Fork 582
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
Migrations accept hint #23826
base: dev
Are you sure you want to change the base?
Migrations accept hint #23826
Conversation
6620d37
to
f17e24f
Compare
ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/56743#01929b23-a30c-4187-b091-852386e7dab4 |
Retry command for Build#56743please wait until all jobs are finished before running the slash command
|
non flaky failures in https://buildkite.com/redpanda/redpanda/builds/56743#01929b27-8d27-4422-a6e6-d7c14b2f6086:
non flaky failures in https://buildkite.com/redpanda/redpanda/builds/56810#01929fa8-80a4-4100-adb3-ec4ea05f5a51:
non flaky failures in https://buildkite.com/redpanda/redpanda/builds/56810#01929fa8-80a5-4f7d-a4b4-36c1302c60ee:
non flaky failures in https://buildkite.com/redpanda/redpanda/builds/56810#01929fa8-80a7-44c4-8717-52ff20303943:
|
// extract location hint from topic name | ||
ss::sstring tp_hinted = ret.source_topic_name.tp; | ||
auto slash_pos = tp_hinted.find('/'); | ||
if (slash_pos != seastar::sstring::npos) { | ||
ret.cloud_storage_location | ||
= cluster::data_migrations::cloud_storage_location{ | ||
.hint = tp_hinted.substr(slash_pos + 1)}; | ||
ret.source_topic_name.tp = model::topic( | ||
std::move(tp_hinted).substr(0, slash_pos)); | ||
} |
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.
use abseil or boost string splitting? (e.g. absl::StrSplit)
f302255
to
b84ca67
Compare
Retry command for Build#56810please wait until all jobs are finished before running the slash command
|
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.
Added a suggestion for the source_topic
description.
5ab1f07
to
fc7993f
Compare
@@ -522,6 +522,10 @@ ss::future<errc> backend::do_topic_work( | |||
state sought_state, | |||
const inbound_topic_work_info& itwi, | |||
tsws_lwptr_t tsws) { | |||
vlog( | |||
dm_log.trace, | |||
"itwi.cloud_storage_location = {}", |
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.
can we add more context here f.e. the topic, the itwi
is not very informative
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.
I made it logged in the universal do_topic_work
instead, both for in- and outbound migrations
it can be None anyway
fc7993f
to
15ce139
Compare
/dt |
As discussed with Matt, accept location hint as part of source topic name when mounting
Backports Required
Release Notes