Skip to content

Conversation

@mmaslankaprv
Copy link
Member

@mmaslankaprv mmaslankaprv commented Jun 3, 2025

Sometimes it may happen that the client will receive not leader controller reply. In this case we must retry creating topic to make sure the rest of the test passes.

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

Release Notes

  • none

Sometimes it may happen that the client will receive not leader
controller reply. In this case we must retry creating topic to make sure
the rest of the test passes.

Signed-off-by: Michał Maślanka <michal@redpanda.com>
auto resp
= client.dispatch(std::move(req), kafka::api_version(2)).get();
if (
resp.data.topics.begin()->error_code == kafka::error_code::none) {
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the actual error returned if controller leadership has changed? Are we okay to swallow any other errors?

Copy link
Member Author

Choose a reason for hiding this comment

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

the test will still fail if retries are exhausted

@vbotbuildovich
Copy link
Collaborator

CI test results

test results on build#66747
test_class test_method test_arguments test_kind job_url test_status passed reason
MaintenanceTest test_maintenance_sticky {"use_rpk": false} ducktape https://buildkite.com/redpanda/redpanda/builds/66747#01973594-ca68-4583-90a2-efe13bf19d9b FLAKY 20/21 upstream reliability is '95.65217391304348'. current run reliability is '95.23809523809523'. drift is 0.41408 and the allowed drift is set to 50. The test should PASS
NodePoolMigrationTest test_migrating_redpanda_nodes_to_new_pool {"balancing_mode": "node_add", "cleanup_policy": "compact,delete", "test_mode": "tiered_storage"} ducktape https://buildkite.com/redpanda/redpanda/builds/66747#01973594-ca67-425d-8215-4ca0ddb91ce1 FLAKY 20/21 upstream reliability is '99.63898916967509'. current run reliability is '95.23809523809523'. drift is 4.40089 and the allowed drift is set to 50. The test should PASS
RandomNodeOperationsTest test_node_operations {"cloud_storage_type": 1, "enable_failures": false, "mixed_versions": false, "with_chunked_compaction": false, "with_iceberg": false} ducktape https://buildkite.com/redpanda/redpanda/builds/66747#01973594-ca67-4627-b1d7-6bac542d4527 FLAKY 20/21 upstream reliability is '99.8046875'. current run reliability is '95.23809523809523'. drift is 4.56659 and the allowed drift is set to 50. The test should PASS
RandomNodeOperationsTest test_node_operations {"cloud_storage_type": 2, "enable_failures": true, "mixed_versions": true, "with_chunked_compaction": false, "with_iceberg": false} ducktape https://buildkite.com/redpanda/redpanda/builds/66747#01973594-ca67-425d-8215-4ca0ddb91ce1 FLAKY 17/21 upstream reliability is '100.0'. current run reliability is '80.95238095238095'. drift is 19.04762 and the allowed drift is set to 50. The test should PASS

@mmaslankaprv mmaslankaprv merged commit 5925770 into redpanda-data:dev Jun 3, 2025
19 checks passed
@mmaslankaprv mmaslankaprv deleted the retry-creating-topic-recovery-test branch June 3, 2025 16:30
@vbotbuildovich
Copy link
Collaborator

/backport v25.1.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.

4 participants