bobbai00 commented on code in PR #9445:
URL: https://github.com/apache/texera/pull/9445#discussion_r4651729373
##########
amber/src/main/scala/org/apache/texera/web/resource/SyncExecutionResource.scala:
##########
@@ -153,6 +154,13 @@ class SyncExecutionResource extends LazyLogging {
s"maxOperatorResultCellCharLimit=${request.maxOperatorResultCellCharLimit}
(capped to $maxOperatorResultCellCharLimit)"
)
+ val span = TexeraTracer.tracer
Review Comment:
The new case pins the name, the three attributes and ERROR on a failed run.
Two parts of this are still open.
Nesting: this path runs `initExecutionService`, so its span lands in
`exportedSpans` too. Asserting that its `getParentSpanId` equals this span's
`getSpanId` would catch losing `val scope = span.makeCurrent()` at
[L164](https://github.com/apache/texera/blob/a48464e5764654b1e0d676bf64e63b3307dea207/amber/src/main/scala/org/apache/texera/web/resource/SyncExecutionResource.scala#L164),
which is the link #9440 asks for.
The catch arm at
[L373-376](https://github.com/apache/texera/blob/a48464e5764654b1e0d676bf64e63b3307dea207/amber/src/main/scala/org/apache/texera/web/resource/SyncExecutionResource.scala#L373-L376)
is never reached, so `span.recordException(e)` is unpinned. A request with
`warehouseId = Some(1)` is refused at L176 whichever way the warehouse flag is
set, which gets there without an engine run.
The testing section also still says the amber module could not be compiled
locally; it can name this case and its CI run instead.
--
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]