You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "aglinxinyuan (via GitHub)" <gi...@apache.org> on 2026/07/10 00:19:24 UTC

[PR] refactor(amber): remove dead WorkflowWorker.handleActorCommand [texera]

aglinxinyuan opened a new pull request, #6305:
URL: https://github.com/apache/texera/pull/6305

   ### What changes were proposed in this PR?
   
   Removes the dead `handleActorCommand` method from `WorkflowWorker`. It is a `Receive` whose body is a bare `println(c)`, it is not part of the actor's `receive` chain (`receive = super.receive orElse handleDirectInvocation orElse handleTriggerClosure`), and it has no callers — the live `handleActorCommand` is a separate method on `DPThread`. Deleting it removes a debug leftover and raises coverage by removal rather than cementing dead code with a test.
   
   ### Any related issues, documentation, discussions?
   
   Closes #6304. Follow-up to a review comment by @mengw15 on #6289.
   
   ### How was this PR tested?
   
   No new tests — this only deletes unreachable code. Verified locally (Java 17): the amber module compiles, `WorkerSpec` (which exercises `WorkflowWorker`) passes, and `scalafixAll --check` is clean (the `ActorCommand` import remains used via `ActorCommandElement`).
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (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 dead WorkflowWorker.handleActorCommand [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #6305:
URL: https://github.com/apache/texera/pull/6305#issuecomment-4930749700

   <!-- 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:** `@Yicong-Huang`
     You can notify them by mentioning `@Yicong-Huang` 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 dead WorkflowWorker.handleActorCommand [texera]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #6305:
URL: https://github.com/apache/texera/pull/6305#issuecomment-4930800690

   <!-- texera-benchmarks-comment -->
   ## ⚠️ Benchmark changes need a look
   
   🟢 4 better · 🔴 3 worse · ⚪ 8 noise (<±5%) · 0 without baseline
   
   > Compared against main `12f9f1a` 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/29059857058)
   
   | | config | throughput | MB/s | latency | max Δ latest / 7d |
   |---|---|---:|---:|---:|---:|
   | 🔴 | bs=10 sw=10 sl=64 | 548 | 0.334 | 17,354/23,767/23,767 us | 🔴 -10.2% / 🔴 +57.2% |
   | 🟢 | bs=100 sw=10 sl=64 | 1,171 | 0.715 | 84,147/97,360/97,360 us | 🟢 -11.0% / 🟢 +17.1% |
   | ⚪ | bs=1000 sw=10 sl=64 | 1,361 | 0.83 | 733,601/783,914/783,914 us | ⚪ within ±5% / 🟢 +33.5% |
   
   <details><summary>Baseline details</summary>
   
   Latest main `12f9f1a` from same runner
   
   | config | metric | PR | latest main | 7d avg | Δ latest | Δ 7d |
   |---|---|---:|---:|---:|---:|---:|
   | bs=10 sw=10 sl=64 | throughput | 548 tuples/sec | 609 tuples/sec | 779.42 tuples/sec | -10.0% | -29.7% |
   | bs=10 sw=10 sl=64 | MB/s | 0.334 MB/s | 0.372 MB/s | 0.476 MB/s | -10.2% | -29.8% |
   | bs=10 sw=10 sl=64 | p50 | 17,354 us | 16,199 us | 12,550 us | +7.1% | +38.3% |
   | bs=10 sw=10 sl=64 | p95 | 23,767 us | 25,266 us | 15,115 us | -5.9% | +57.2% |
   | bs=10 sw=10 sl=64 | p99 | 23,767 us | 25,266 us | 18,652 us | -5.9% | +27.4% |
   | bs=100 sw=10 sl=64 | throughput | 1,171 tuples/sec | 1,173 tuples/sec | 1,000 tuples/sec | -0.2% | +17.1% |
   | bs=100 sw=10 sl=64 | MB/s | 0.715 MB/s | 0.716 MB/s | 0.61 MB/s | -0.1% | +17.1% |
   | bs=100 sw=10 sl=64 | p50 | 84,147 us | 82,066 us | 99,872 us | +2.5% | -15.7% |
   | bs=100 sw=10 sl=64 | p95 | 97,360 us | 109,354 us | 107,073 us | -11.0% | -9.1% |
   | bs=100 sw=10 sl=64 | p99 | 97,360 us | 109,354 us | 114,377 us | -11.0% | -14.9% |
   | bs=1000 sw=10 sl=64 | throughput | 1,361 tuples/sec | 1,354 tuples/sec | 1,020 tuples/sec | +0.5% | +33.5% |
   | bs=1000 sw=10 sl=64 | MB/s | 0.83 MB/s | 0.826 MB/s | 0.622 MB/s | +0.5% | +33.3% |
   | bs=1000 sw=10 sl=64 | p50 | 733,601 us | 737,344 us | 987,499 us | -0.5% | -25.7% |
   | bs=1000 sw=10 sl=64 | p95 | 783,914 us | 756,487 us | 1,028,784 us | +3.6% | -23.8% |
   | bs=1000 sw=10 sl=64 | p99 | 783,914 us | 756,487 us | 1,057,136 us | +3.6% | -25.8% |
   
   </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,365.25,200,128000,548,0.334,17354.01,23767.28,23767.28
   1,100,10,64,20,1707.99,2000,1280000,1171,0.715,84146.84,97360.01,97360.01
   2,1000,10,64,20,14699.45,20000,12800000,1361,0.830,733600.82,783914.21,783914.21
   ```
   
   </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 dead WorkflowWorker.handleActorCommand [texera]

Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #6305:
URL: https://github.com/apache/texera/pull/6305#discussion_r3555604890


##########
amber/src/main/scala/org/apache/texera/amber/engine/architecture/worker/WorkflowWorker.scala:
##########
@@ -127,11 +127,6 @@ class WorkflowWorker(
       t.closure(this)
   }
 
-  def handleActorCommand: Receive = {
-    case c: ActorCommand =>
-      println(c)
-  }
-
   override def preRestart(reason: Throwable, message: Option[Any]): Unit = {
     super.preRestart(reason, message)
     logger.error(s"Encountered fatal error, worker is shutting done.", reason)

Review Comment:
   Log message typo: "shutting done" should be "shutting down".



-- 
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 dead WorkflowWorker.handleActorCommand [texera]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #6305:
URL: https://github.com/apache/texera/pull/6305#issuecomment-4930829919

   ## [Codecov](https://app.codecov.io/gh/apache/texera/pull/6305?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :x: Patch coverage is `0%` with `1 line` in your changes missing coverage. Please review.
   :white_check_mark: Project coverage is 60.75%. Comparing base ([`12f9f1a`](https://app.codecov.io/gh/apache/texera/commit/12f9f1a45240d5316703c2385f3bbe0159997b25?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`44cf0a2`](https://app.codecov.io/gh/apache/texera/commit/44cf0a2e0e47bb8e7a68db430ed4d7fbfd2dcbe9?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   :warning: Report is 1 commits behind head on main.
   :white_check_mark: All tests successful. No failed tests found.
   
   | [Files with missing lines](https://app.codecov.io/gh/apache/texera/pull/6305?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
   |---|---|---|
   | [...er/engine/architecture/worker/WorkflowWorker.scala](https://app.codecov.io/gh/apache/texera/pull/6305?src=pr&el=tree&filepath=amber%2Fsrc%2Fmain%2Fscala%2Forg%2Fapache%2Ftexera%2Famber%2Fengine%2Farchitecture%2Fworker%2FWorkflowWorker.scala&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-YW1iZXIvc3JjL21haW4vc2NhbGEvb3JnL2FwYWNoZS90ZXhlcmEvYW1iZXIvZW5naW5lL2FyY2hpdGVjdHVyZS93b3JrZXIvV29ya2Zsb3dXb3JrZXIuc2NhbGE=) | 0.00% | [1 Missing :warning: ](https://app.codecov.io/gh/apache/texera/pull/6305?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   
   :x: Your patch status has failed because the patch coverage (0.00%) is below the target coverage (60.00%). You can increase the patch coverage or adjust the [target](https://docs.codecov.com/docs/commit-status#target) coverage.
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   ```diff
   @@             Coverage Diff              @@
   ##               main    #6305      +/-   ##
   ============================================
   - Coverage     60.77%   60.75%   -0.02%     
   + Complexity     3367     3363       -4     
   ============================================
     Files          1135     1135              
     Lines         44191    44188       -3     
     Branches       4830     4829       -1     
   ============================================
   - Hits          26855    26848       -7     
     Misses        15878    15878              
   - Partials       1458     1462       +4     
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/texera/pull/6305/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/6305/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `70.00% <ø> (ø)` | | Carriedforward from [12f9f1a](https://app.codecov.io/gh/apache/texera/commit/12f9f1a45240d5316703c2385f3bbe0159997b25?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/6305/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `44.59% <ø> (ø)` | | Carriedforward from [12f9f1a](https://app.codecov.io/gh/apache/texera/commit/12f9f1a45240d5316703c2385f3bbe0159997b25?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/6305/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `66.10% <0.00%> (-0.03%)` | :arrow_down: | |
   | [computing-unit-managing-service](https://app.codecov.io/gh/apache/texera/pull/6305/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `0.00% <ø> (ø)` | | Carriedforward from [12f9f1a](https://app.codecov.io/gh/apache/texera/commit/12f9f1a45240d5316703c2385f3bbe0159997b25?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/6305/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `52.30% <ø> (ø)` | | Carriedforward from [12f9f1a](https://app.codecov.io/gh/apache/texera/commit/12f9f1a45240d5316703c2385f3bbe0159997b25?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/6305/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `63.97% <ø> (ø)` | | Carriedforward from [12f9f1a](https://app.codecov.io/gh/apache/texera/commit/12f9f1a45240d5316703c2385f3bbe0159997b25?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/6305/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `52.71% <ø> (ø)` | | Carriedforward from [12f9f1a](https://app.codecov.io/gh/apache/texera/commit/12f9f1a45240d5316703c2385f3bbe0159997b25?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [notebook-migration-service](https://app.codecov.io/gh/apache/texera/pull/6305/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `78.94% <ø> (ø)` | | Carriedforward from [12f9f1a](https://app.codecov.io/gh/apache/texera/commit/12f9f1a45240d5316703c2385f3bbe0159997b25?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/6305/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `91.18% <ø> (ø)` | | Carriedforward from [12f9f1a](https://app.codecov.io/gh/apache/texera/commit/12f9f1a45240d5316703c2385f3bbe0159997b25?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/6305/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `55.14% <ø> (ø)` | | Carriedforward from [12f9f1a](https://app.codecov.io/gh/apache/texera/commit/12f9f1a45240d5316703c2385f3bbe0159997b25?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/6305?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 dead WorkflowWorker.handleActorCommand [texera]

Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan merged PR #6305:
URL: https://github.com/apache/texera/pull/6305


-- 
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