Skip to content

[v25.2.x] dl/coordinator: add default formatter for errc#31004

Open
vbotbuildovich wants to merge 1 commit into
redpanda-data:v25.2.xfrom
vbotbuildovich:ai-backport-pr-31003-v25.2.x-1783022846
Open

[v25.2.x] dl/coordinator: add default formatter for errc#31004
vbotbuildovich wants to merge 1 commit into
redpanda-data:v25.2.xfrom
vbotbuildovich:ai-backport-pr-31003-v25.2.x-1783022846

Conversation

@vbotbuildovich

Copy link
Copy Markdown
Collaborator

Backport of PR #31003

  • Command: git cherry-pick -x a9b2926
  • Commits backported: 1
  • Conflicts resolved: 1
  • Commits skipped (already on target): 0
  • Backport branch: ai-backport-pr-31003-v25.2.x-1783022846

Conflict details

  • a9b2926 (src/v/datalake/coordinator/types.h): dev migrated errc formatting to an inline format_to in the header, but v25.2.x still declares operator<< in the header and implements it in types.cc. Kept the target branch's operator<< declaration in the header and applied the commit's intent — an errc::unknown(N) fallback for out-of-range wire-deserialized values — as a default: case in the operator<< switch in src/v/datalake/coordinator/types.cc.

This errc gets serialized over the wire, so it's possible for a binary
to get unknown numeric values (e.g. future errors). The formatter
previously didn't account for this and would result in UB when adding
errc types.

(cherry picked from commit a9b2926)
@vbotbuildovich vbotbuildovich added this to the v25.2.x-next milestone Jul 2, 2026
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Jul 2, 2026
@vbotbuildovich vbotbuildovich requested a review from andrwng July 2, 2026 20:09
@vbotbuildovich

Copy link
Copy Markdown
Collaborator Author

CI test results

test results on build#86681
test_status test_class test_method test_arguments test_kind job_url passed reason test_history
FAIL MasterTestSuite test_chunk_dl_with_random_http_errors unit https://buildkite.com/redpanda/redpanda/builds/86681#019f2474-48a6-438f-8769-dc07a955334f 0/1
FLAKY(PASS) ShadowIndexingLocalRetentionTest test_shadow_indexing_default_local_retention {"cloud_storage_type": 2, "cluster_remote_write": false, "topic_remote_write": "true"} integration https://buildkite.com/redpanda/redpanda/builds/86681#019f2497-0133-4119-ae76-17d5d49d9916 10/11 Test PASSES after retries.No significant increase in flaky rate(baseline=0.0143, 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=ShadowIndexingLocalRetentionTest&test_method=test_shadow_indexing_default_local_retention

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/redpanda kind/backport PRs targeting a stable branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants