-
Notifications
You must be signed in to change notification settings - Fork 596
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
Improve migrations API #23479
Improve migrations API #23479
Conversation
af6af78
to
6bee80a
Compare
ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/55119#01922a52-d9ec-4c72-a21d-e7c653424b2d ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/55598#01924a32-bcb7-408e-807c-db5c0858d011 ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/55638#01924ce7-fab6-4de2-b08e-653f773f9e09 |
@@ -33,6 +33,7 @@ | |||
|
|||
MIGRATION_LOG_ALLOW_LIST = [ | |||
'Error during log recovery: cloud_storage::missing_partition_exception', | |||
'Requested data migration does not exist', |
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.
this shouldn't be logged with an error
severity as this is a result of user interacting with an API endpoint
@@ -34,6 +34,7 @@ | |||
MIGRATION_LOG_ALLOW_LIST = [ | |||
'Error during log recovery: cloud_storage::missing_partition_exception', | |||
'Requested data migration does not exist', | |||
'Invalid data migration state transition requested', |
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.
this is similar, shouldn't be an error
@@ -201,6 +201,14 @@ migrations_table::apply(create_data_migration_cmd cmd) { | |||
std::optional<migrations_table::validation_error> | |||
migrations_table::validate_migrated_resources( | |||
const data_migration& migration) const { | |||
// cloud_storage_api is checked on startup | |||
if (!config::shard_local_cfg().cloud_storage_enabled()) { |
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 pass a configuration::binding for those two values ?, the code will be much easier to test
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.
it won't work, as these settings fail base_property::assert_live_settable()
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.
used a boolean as discussed
config::shard_local_cfg().cloud_storage_enabled.set_value(true); | ||
config::shard_local_cfg() | ||
.cloud_storage_disable_archiver_manager.set_value(true); | ||
config::shard_local_cfg().cloud_storage_enable_remote_write.set_value( | ||
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.
this should be expressed as config::mock_binding
passed as an argument to the table constructor
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.
used a boolean ctor argument as discussed
Check the same conditions as checked when creating archival STM: cluster-wide and topic configuration on cloud storage.
refuse to create migrations if cluster-wide or topic configs are unsupported
otherwise migrations don't pass validation
6bee80a
to
68889db
Compare
new failures in https://buildkite.com/redpanda/redpanda/builds/55598#01924a2e-8c27-4ae0-a670-1ab05ea78794:
new failures in https://buildkite.com/redpanda/redpanda/builds/55598#01924a2e-8c2a-4b5c-96fd-c11d43af00b4:
new failures in https://buildkite.com/redpanda/redpanda/builds/55598#01924a32-bcb1-4bcb-8d7f-f6b0ada432ce:
new failures in https://buildkite.com/redpanda/redpanda/builds/55598#01924a32-bcae-4083-b72d-c98b7b38d900:
|
/ci-repeat |
Backports Required
Release Notes