bobbai00 commented on code in PR #9445:
URL: https://github.com/apache/texera/pull/9445#discussion_r4674974164
##########
amber/src/main/scala/org/apache/texera/web/resource/SyncExecutionResource.scala:
##########
@@ -353,11 +362,29 @@ class SyncExecutionResource extends LazyLogging {
compilationErrors = None,
errors = if (fatalErrors.nonEmpty) Some(fatalErrors) else None
)
+ }
+ try {
+ // A failed run (an early return or a caught exception) must mark the
span ERROR, or
+ // Jaeger's error filter skips it; set it once from the single result.
+ val result =
+ try runExecution()
+ catch {
+ case e: Exception =>
Review Comment:
**Advisory:**
The rewritten description says "any Throwable is recorded and re-raised",
but an `Exception` stops here: it is recorded and returned as a 200 with
`success = false`. Only a non-`Exception` `Throwable` reaches the rethrow at
L384. Agent-service branches on that
([workflow-execution-tools.ts:308](https://github.com/apache/texera/blob/3fb963ebf86379942a00e14e3c4752a4a3a12480/agent-service/src/agent/tools/workflow-execution-tools.ts#L308)),
so "a non-Exception Throwable" is the accurate wording.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]