Skip to content

[v25.1.x] datalake: clean up files after translation error#27766

Merged
andrwng merged 2 commits intoredpanda-data:v25.1.xfrom
andrwng:v25.1.x-27737
Sep 27, 2025
Merged

[v25.1.x] datalake: clean up files after translation error#27766
andrwng merged 2 commits intoredpanda-data:v25.1.xfrom
andrwng:v25.1.x-27737

Conversation

@andrwng
Copy link
Copy Markdown
Contributor

@andrwng andrwng commented Sep 26, 2025

Backport of PR #27737

CONFLICTS:
- this branch doesn't have some logging at the top of finish()
- different formatting in this branch in translation_task_test
- this branch is missing a test in record_multiplexer_test that was
  affected by the signature change of finish()

This will be useful to inject transient errors to the record multiplexer
(e.g. schema registry errors) to fail translation, rather than DLQ
records.

Will be used in an upcoming test to ensure we clean up local files after
such a failure.

(cherry picked from commit c253a2e)
CONFLICTS:
- this branch doesn't have some logging at the top of finish()
- different formatting in this branch in translation_task_test
- this branch is missing a test in record_multiplexer_test that was
  affected by the signature change of finish()
- translation task doesn't take features table as an argument

We previously didn't clean up files record_multiplexer::finish()
returned errors. Since the returned success result is previously what
held the local files, this commit updates the signature to collect the
files in finish() (regardless of whether the operation succeeds or not),
and cleans up the files in translation_task::finish() and ::discard().

(cherry picked from commit fd496bc)
@vbotbuildovich
Copy link
Copy Markdown
Collaborator

CI test results

test results on build#73101
test_class test_method test_arguments test_kind job_url test_status passed reason test_history
gtest_cloud_storage_rpfixture gtest_cloud_storage_rpfixture unit https://buildkite.com/redpanda/redpanda/builds/73101#0199874e-b595-4555-b856-d9a4a94d4a48 FLAKY 1/2
SaslPlainTest test_plain_authn {"client_type": 3, "sasl_plain_enabled": false, "scram_type": 1} integration https://buildkite.com/redpanda/redpanda/builds/73101#01998790-676a-4a7c-b947-a45a9e82bccd FLAKY 20/21 upstream reliability is '100.0'. current run reliability is '95.23809523809523'. drift is 4.7619 and the allowed drift is set to 50. The test should PASS https://redpanda.metabaseapp.com/dashboard/87-tests?tab=142-dt-individual-test-history&test_class=SaslPlainTest&test_method=test_plain_authn

@andrwng andrwng merged commit 19b2961 into redpanda-data:v25.1.x Sep 27, 2025
16 checks passed
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.

3 participants