Skip to content

shadowing: fix name prefix in Kafka client ID#29783

Merged
bharathv merged 1 commit intoredpanda-data:devfrom
bharathv:fix_client_id_prefix
Mar 10, 2026
Merged

shadowing: fix name prefix in Kafka client ID#29783
bharathv merged 1 commit intoredpanda-data:devfrom
bharathv:fix_client_id_prefix

Conversation

@bharathv
Copy link
Copy Markdown
Contributor

This is user visible in link status, so good to keep it consistent with latest terminology.

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

Release Notes

  • none

This is user visible in link status, so good to keep it consistent with
latest terminology.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the shadow-link admin conversion logic so the Kafka client ID prefix matches current “shadow-link” terminology, keeping link status and related user-facing strings consistent.

Changes:

  • Change the generated Kafka client_id prefix from cluster-link- to shadow-link-.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines 1266 to +1268
void set_client_id(cluster_link::model::metadata& md) {
md.connection.client_id = ssx::sformat(
"cluster-link-{}-{}", md.name, md.uuid);
"shadow-link-{}-{}", md.name, md.uuid);
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

This changes the user-visible Kafka client_id prefix, but there isn’t a unit test asserting the exact set_client_id format. Consider adding a small test in the existing shadow_link converter tests to verify the generated client_id starts with shadow-link- and includes the link name/uuid, to prevent accidental regressions back to the old prefix.

Copilot uses AI. Check for mistakes.
@vbotbuildovich
Copy link
Copy Markdown
Collaborator

CI test results

test results on build#81542
test_class test_method test_arguments test_kind job_url test_status passed reason test_history
CloudTopicsL0GCNodeFailureTest test_node_failure_mid_gc {"cloud_storage_type": 1} integration https://buildkite.com/redpanda/redpanda/builds/81542#019cd84c-f3a3-4e53-83f2-68509abb9acb FLAKY 10/11 Test PASSES after retries.No significant increase in flaky rate(baseline=0.0290, p0=1.0000, reject_threshold=0.0100. adj_baseline=0.1000, p1=0.3487, trust_threshold=0.5000) https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=CloudTopicsL0GCNodeFailureTest&test_method=test_node_failure_mid_gc

@bharathv bharathv merged commit 601bdfa into redpanda-data:dev Mar 10, 2026
24 checks passed
@vbotbuildovich
Copy link
Copy Markdown
Collaborator

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