The GitHub Actions job "Benchmarks" on texera.git/main has failed.
Run started by GitHub user github-merge-queue[bot] (triggered by 
github-merge-queue[bot]).

Head commit for run:
379f9a7222915b6eafc1767e7f6404534ba74aa6 / anthonychengit 
<[email protected]>
fix(amber): classify wrapped sync timeouts (#7640)

### What changes were proposed in this PR?

RxJava's `blockingGet` can wrap a checked `TimeoutException`. The
previous catch matched only a direct timeout, so a wrapped timeout fell
through to the generic error handler and returned `Error` instead of
`Killed`.

```text
Before: timeout -> wrapper exception -> generic handler -> Error
After:  timeout -> cause-chain check -> timeout handler -> Killed
```

This change classifies an exception as a timeout when any safe, finite
link in its cause chain is a `TimeoutException`. Tests cover direct and
nested timeouts as positive cases, plus unrelated exceptions and `null`
as negative cases.

### Any related issues, documentation, discussions?

Closes #6198

### How was this PR tested?

```bash
sbt "WorkflowExecutionService / Test / testOnly 
org.apache.texera.web.resource.SyncExecutionResourceSpec -- -z 
isCausedByTimeout"
sbt scalafmtCheckAll
sbt "scalafixAll --check"
```

The focused timeout-classification tests passed. Scala formatting and
Scalafix checks also passed.

I also ran the complete `SyncExecutionResourceSpec`. The new timeout
cases passed; 8 pre-existing storage-result cases could not complete
because the local Iceberg REST catalog expected at `localhost:8181` was
not running. Those cases are outside this change and will be exercised
by the repository CI environment.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: OpenAI Codex (GPT-5)

---------

Co-authored-by: Kunwoo (Chris) <[email protected]>

Report URL: https://github.com/apache/texera/actions/runs/42478795452

With regards,
GitHub Actions via GitBox

Reply via email to