Skip to content

[AMORO-4297][AMS] Persist failure reasons in task quota history - #4298

Open
j1wonpark wants to merge 1 commit into
apache:masterfrom
j1wonpark:issue-4297
Open

[AMORO-4297][AMS] Persist failure reasons in task quota history#4298
j1wonpark wants to merge 1 commit into
apache:masterfrom
j1wonpark:issue-4297

Conversation

@j1wonpark

Copy link
Copy Markdown
Contributor

Why are the changes needed?

TaskRuntime records the error message when an optimizing task fails, but the failure reason was not copied to TaskQuota. As a result, optimizing_task_quota.fail_reason was persisted as NULL.

Fixes #4297.

Brief change log

  • Propagate the failure reason from TaskRuntime to TaskQuota.
  • Add a regression test for the conversion.

How was this patch tested?

  • Added a focused regression test.
  • Ran the related optimizing queue tests locally.
./mvnw test -pl amoro-ams -Dtest=TestTaskRuntime
./mvnw test -pl amoro-ams -Dtest=TestTaskRuntime,TestOptimizingQueue

Documentation

  • Does this pull request introduce a new feature? no
  • If yes, how is the feature documented? not applicable

Signed-off-by: Jiwon Park <jpark92@outlook.kr>
@github-actions github-actions Bot added the module:ams-server Ams server module label Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module:ams-server Ams server module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Optimizing task quota history does not persist failure reasons

1 participant