Skip to content

[v25.3.x] datalake/coordinator: add reset topic state escape hatch#29760

Closed
vbotbuildovich wants to merge 2 commits intoredpanda-data:v25.3.xfrom
vbotbuildovich:backport-pr-29596-v25.3.x-54
Closed

[v25.3.x] datalake/coordinator: add reset topic state escape hatch#29760
vbotbuildovich wants to merge 2 commits intoredpanda-data:v25.3.xfrom
vbotbuildovich:backport-pr-29596-v25.3.x-54

Conversation

@vbotbuildovich
Copy link
Copy Markdown
Collaborator

Backport of PR #29596

Operators may need to clear pending files from the datalake coordinator
when Iceberg catalog state becomes inconsistent (e.g. after manual
catalog modifications) which can result in stuck coordinator.

The new CoordinatorResetState RPC is exposed via the admin API with
SUPERUSER authorization and plumbed through the coordinator frontend,
RPC service, and state machine.

(cherry picked from commit c6f5621)
In some cases we want to manually choose from where translation
should resume after a coordinator reset. Add per-partition
last_committed overrides and a reset_all_partitions flag.

By default reset_all_partitions is false and the request is a no-op
unless partition_overrides are provided — only the listed partitions
have their pending entries cleared and last_committed set. Setting
reset_all_partitions to true clears all partitions first, then
applies any overrides. This default-safe design minimizes surprise
and makes it harder to accidentally wipe state.

(cherry picked from commit f44ca9d)
@vbotbuildovich vbotbuildovich added this to the v25.3.x-next milestone Mar 5, 2026
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Mar 5, 2026
@nvartolomei
Copy link
Copy Markdown
Contributor

Created twice by accident #29759

@nvartolomei nvartolomei closed this Mar 5, 2026
@vbotbuildovich
Copy link
Copy Markdown
Collaborator Author

CI test results

test results on build#81431
test_class test_method test_arguments test_kind job_url test_status passed reason test_history
DatalakeClusterRestoreTest test_restore_partition_spec {"catalog_type": "rest_hadoop", "cloud_storage_type": 1} integration https://buildkite.com/redpanda/redpanda/builds/81431#019cbec8-8661-4c06-97fe-884d7345ac72 FLAKY 10/11 Test PASSES after retries.No significant increase in flaky rate(baseline=0.0000, 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=DatalakeClusterRestoreTest&test_method=test_restore_partition_spec

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

Labels

area/build area/redpanda kind/backport PRs targeting a stable branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants