Skip to content

fix(analysis): map Exaflow AnalysisExecutionError to 462 - #62

Merged
KFilippopolitis merged 2 commits into
masterfrom
fix/exaflow-462-analysis-execution-error
Nov 30, 2026
Merged

KFilippopolitis merged 2 commits into
masterfrom
fix/exaflow-462-analysis-execution-error

Conversation

@KFilippopolitis

Copy link
Copy Markdown
Contributor

Summary

Exaflow PR #687 (Fix/privacy enhancements) introduces AnalysisExecutionError, which the controller reports as status 462 over RabbitMQ (error code "AnalysisExecutionError").

platform-backend had no mapping for it:

  • ExaflowAmqpClient.httpCode() fell through to default -> 500.
  • AnalysisExecutionService.convertResponseToAnalysisResult() did not list 462, so it reached handleUnexpectedResponseCode() and threw InternalServerError.

Net effect: a user-facing algorithm failure (for example "Logistic regression could not converge to a stable solution.") was shown as the generic "Something went wrong" message.

Changes

  • ExaflowAmqpClient: map "AnalysisExecutionError" to 462.
  • AnalysisExecutionService: treat 462 as a client error so the Exaflow message is returned as {data, type: "text/plain+error"}.
  • Tests: reply-mapping row for 462 and a contract test asserting the message and code survive conversion.

Compatibility

No API shape change. 462 is a new status code only; existing codes are untouched. No UI change is required: the body shape matches 460/461 and the UI already renders text/plain+error results.

Validation

  • mvn -B -ntp test -> 252 tests, 0 failures, 0 errors, 13 skipped.

Risk

Low. Two-line production change plus tests. Rollback is reverting this commit; no data, schema, or deployment impact.

Exaflow PR #687 adds AnalysisExecutionError, which the controller reports as status 462 over RabbitMQ. Without a mapping the reply fell through to 500 and the analysis message was replaced by the generic error. Map the code to 462 and keep 462 in the client-error conversion list so the message reaches the user.

@ThanKarab ThanKarab left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@KFilippopolitis
KFilippopolitis merged commit 6da5071 into master Nov 30, 2026
15 checks passed
@KFilippopolitis
KFilippopolitis deleted the fix/exaflow-462-analysis-execution-error branch November 30, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants