You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "bobbai00 (via GitHub)" <gi...@apache.org> on 2026/06/21 19:21:39 UTC
[PR] refactor(amber): remove redundant result-readiness wait in SyncExecutionResource [texera]
bobbai00 opened a new pull request, #5856:
URL: https://github.com/apache/texera/pull/5856
### What changes were proposed in this PR?
Removes the two `Thread.sleep(500)` waits in `SyncExecutionResource.executeWorkflowSync` and reads results as soon as the execution reaches `COMPLETED`. The wait was redundant: the engine commits each operator's result storage synchronously — `OutputManager.closeOutputStorageWriterIfNeeded` joins the writer thread (forcing the Iceberg commit) before the worker reports `COMPLETED`, and a failed commit surfaces as `FAILED`/`KILLED`, never `COMPLETED`. Adds `ResultPersistedOnCompletionSpec` to lock that invariant.
### Any related issues, documentation, discussions?
Closes #5855
### How was this PR tested?
`WorkflowExecutionService/testOnly ...e2e.ResultPersistedOnCompletionSpec` — 2 cases (a single source, and a multi-region scan→keyword→count DAG) that read result storage the instant the run reports `COMPLETED` (no wait) and assert the committed `getCount` equals the rows actually readable. The existing `OutputPortStorageWriterThreadSpec` covers the commit/failure-propagation path.
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Opus 4.8 (1M context)
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(amber): remove redundant result-readiness wait in SyncExecutionResource [texera]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #5856:
URL: https://github.com/apache/texera/pull/5856#issuecomment-4763048455
<!-- texera-benchmarks-comment -->
## ✅ No material benchmark regressions detected
🟢 0 better · 🔴 0 worse · ⚪ 15 noise (<±5%) · 0 without baseline
> Compared against main `b2886ca` benchmarked on **this same runner**, so the delta is largely free of cross-runner hardware noise. The "7d avg" column still reflects the gh-pages dashboard. Treat <±5% as noise unless repeated.
[Dashboard](https://apache.github.io/texera/dev/bench/) · [Run](https://github.com/apache/texera/actions/runs/27914868481)
| | config | throughput | MB/s | latency | max Δ latest / 7d |
|---|---|---:|---:|---:|---:|
| ⚪ | bs=10 sw=10 sl=64 | 394 | 0.24 | 24,234/36,575/36,575 us | ⚪ within ±5% / ⚪ within ±5% |
| ⚪ | bs=100 sw=10 sl=64 | 815 | 0.497 | 123,218/137,580/137,580 us | ⚪ within ±5% / 🔴 +9.7% |
| ⚪ | bs=1000 sw=10 sl=64 | 925 | 0.565 | 1,082,257/1,111,552/1,111,552 us | ⚪ within ±5% / 🔴 +11.3% |
<details><summary>Baseline details</summary>
Latest main `b2886ca` from same runner
| config | metric | PR | latest main | 7d avg | Δ latest | Δ 7d |
|---|---|---:|---:|---:|---:|---:|
| bs=10 sw=10 sl=64 | throughput | 394 tuples/sec | 392 tuples/sec | 410.82 tuples/sec | +0.5% | -4.1% |
| bs=10 sw=10 sl=64 | MB/s | 0.24 MB/s | 0.239 MB/s | 0.251 MB/s | +0.4% | -4.3% |
| bs=10 sw=10 sl=64 | p50 | 24,234 us | 25,186 us | 23,785 us | -3.8% | +1.9% |
| bs=10 sw=10 sl=64 | p95 | 36,575 us | 36,111 us | 34,980 us | +1.3% | +4.6% |
| bs=10 sw=10 sl=64 | p99 | 36,575 us | 36,111 us | 34,980 us | +1.3% | +4.6% |
| bs=100 sw=10 sl=64 | throughput | 815 tuples/sec | 823 tuples/sec | 891.94 tuples/sec | -1.0% | -8.6% |
| bs=100 sw=10 sl=64 | MB/s | 0.497 MB/s | 0.502 MB/s | 0.544 MB/s | -1.0% | -8.7% |
| bs=100 sw=10 sl=64 | p50 | 123,218 us | 120,415 us | 112,277 us | +2.3% | +9.7% |
| bs=100 sw=10 sl=64 | p95 | 137,580 us | 143,366 us | 139,802 us | -4.0% | -1.6% |
| bs=100 sw=10 sl=64 | p99 | 137,580 us | 143,366 us | 139,802 us | -4.0% | -1.6% |
| bs=1000 sw=10 sl=64 | throughput | 925 tuples/sec | 928 tuples/sec | 1,041 tuples/sec | -0.3% | -11.1% |
| bs=1000 sw=10 sl=64 | MB/s | 0.565 MB/s | 0.566 MB/s | 0.635 MB/s | -0.2% | -11.1% |
| bs=1000 sw=10 sl=64 | p50 | 1,082,257 us | 1,082,111 us | 972,714 us | +0.0% | +11.3% |
| bs=1000 sw=10 sl=64 | p95 | 1,111,552 us | 1,121,997 us | 1,023,057 us | -0.9% | +8.7% |
| bs=1000 sw=10 sl=64 | p99 | 1,111,552 us | 1,121,997 us | 1,023,057 us | -0.9% | +8.7% |
</details>
<details><summary>Raw CSV</summary>
```csv
config_idx,batch_size,schema_width,string_len,num_batches,total_ms,total_tuples,total_bytes,tuples_per_sec,mb_per_sec,lat_p50_us,lat_p95_us,lat_p99_us
0,10,10,64,20,507.70,200,128000,394,0.240,24234.00,36574.80,36574.80
1,100,10,64,20,2455.00,2000,1280000,815,0.497,123217.59,137580.13,137580.13
2,1000,10,64,20,21621.11,20000,12800000,925,0.565,1082256.78,1111551.53,1111551.53
```
</details>
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(amber): remove redundant result-readiness wait in SyncExecutionResource [texera]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #5856: refactor(amber): remove redundant result-readiness wait in SyncExecutionResource
URL: https://github.com/apache/texera/pull/5856
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(amber): remove redundant result-readiness wait in SyncExecutionResource [texera]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #5856:
URL: https://github.com/apache/texera/pull/5856#issuecomment-4763032668
<!-- texera-reviewer-suggestion -->
### Automated Reviewer Suggestions
Based on the `git blame` history of the changed files, we recommend the following reviewers:
- **Contributors with relevant context:** `@Ma77Ball`
You can notify them by mentioning `@Ma77Ball` in a comment.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(amber): remove redundant result-readiness wait in SyncExecutionResource [texera]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #5856:
URL: https://github.com/apache/texera/pull/5856#issuecomment-4763059295
## [Codecov](https://app.codecov.io/gh/apache/texera/pull/5856?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 53.88%. Comparing base ([`357fed0`](https://app.codecov.io/gh/apache/texera/commit/357fed00765169b280136803861fb1f59ec6589d?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`5f9c481`](https://app.codecov.io/gh/apache/texera/commit/5f9c481cad7dd26166fb42740320efea15820776?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 9 commits behind head on main.
:white_check_mark: All tests successful. No failed tests found.
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## main #5856 +/- ##
============================================
+ Coverage 53.64% 53.88% +0.23%
- Complexity 2720 2753 +33
============================================
Files 1099 1099
Lines 42541 42539 -2
Branches 4577 4577
============================================
+ Hits 22822 22921 +99
+ Misses 18385 18284 -101
Partials 1334 1334
```
| [Flag](https://app.codecov.io/gh/apache/texera/pull/5856/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | | *Carryforward flag |
|---|---|---|---|
| [access-control-service](https://app.codecov.io/gh/apache/texera/pull/5856/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `70.44% <ø> (ø)` | | Carriedforward from [357fed0](https://app.codecov.io/gh/apache/texera/commit/357fed00765169b280136803861fb1f59ec6589d?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [agent-service](https://app.codecov.io/gh/apache/texera/pull/5856/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `34.36% <ø> (ø)` | | Carriedforward from [357fed0](https://app.codecov.io/gh/apache/texera/commit/357fed00765169b280136803861fb1f59ec6589d?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [amber](https://app.codecov.io/gh/apache/texera/pull/5856/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `55.18% <ø> (+0.60%)` | :arrow_up: | |
| [computing-unit-managing-service](https://app.codecov.io/gh/apache/texera/pull/5856/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `1.65% <ø> (ø)` | | Carriedforward from [357fed0](https://app.codecov.io/gh/apache/texera/commit/357fed00765169b280136803861fb1f59ec6589d?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [config-service](https://app.codecov.io/gh/apache/texera/pull/5856/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `56.71% <ø> (ø)` | | Carriedforward from [357fed0](https://app.codecov.io/gh/apache/texera/commit/357fed00765169b280136803861fb1f59ec6589d?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [file-service](https://app.codecov.io/gh/apache/texera/pull/5856/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `57.06% <ø> (ø)` | | Carriedforward from [357fed0](https://app.codecov.io/gh/apache/texera/commit/357fed00765169b280136803861fb1f59ec6589d?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [frontend](https://app.codecov.io/gh/apache/texera/pull/5856/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `48.09% <ø> (ø)` | | Carriedforward from [357fed0](https://app.codecov.io/gh/apache/texera/commit/357fed00765169b280136803861fb1f59ec6589d?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [pyamber](https://app.codecov.io/gh/apache/texera/pull/5856/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `90.13% <ø> (ø)` | | Carriedforward from [357fed0](https://app.codecov.io/gh/apache/texera/commit/357fed00765169b280136803861fb1f59ec6589d?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [python](https://app.codecov.io/gh/apache/texera/pull/5856/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `90.80% <ø> (ø)` | | Carriedforward from [357fed0](https://app.codecov.io/gh/apache/texera/commit/357fed00765169b280136803861fb1f59ec6589d?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [workflow-compiling-service](https://app.codecov.io/gh/apache/texera/pull/5856/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `58.69% <ø> (ø)` | | Carriedforward from [357fed0](https://app.codecov.io/gh/apache/texera/commit/357fed00765169b280136803861fb1f59ec6589d?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
*This pull request uses carry forward flags. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to find out more.
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/texera/pull/5856?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(amber): remove redundant result-readiness wait in SyncExecutionResource [texera]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #5856:
URL: https://github.com/apache/texera/pull/5856#issuecomment-5861802343
This pull request has been automatically closed due to 37 days of inactivity.
If you would like to continue this work, please re-open the PR or open a new
one referencing this. Thank you for your contribution.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(amber): remove redundant result-readiness wait in SyncExecutionResource [texera]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #5856:
URL: https://github.com/apache/texera/pull/5856#issuecomment-5754281654
This pull request has been automatically marked as **stale** because it has
not had any activity for 30 days. It will be closed in **7 days** if no
further activity occurs.
If this PR is still relevant, please:
- Push new commits or rebase onto the latest `main`, or
- Comment with a status update, or
- Address any open review feedback.
To exempt this PR from auto-close, a maintainer can add the `pinned` label.
Thank you for your contribution to Apache Texera (incubating)!
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org