Skip to content

fix(amber, v1.2): guard resends by destination - #8062

Draft
github-actions[bot] wants to merge 1 commit into
release/v1.2from
backport/8002-guard-resends-by-destination-v1.2
Draft

fix(amber, v1.2): guard resends by destination#8062
github-actions[bot] wants to merge 1 commit into
release/v1.2from
backport/8002-guard-resends-by-destination-v1.2

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Automated backport of #8002 to release/v1.2.

Source: e54ecd2 · automation run

Any related issues, documentation, discussions?

Backport of #8002. Originally linked #6921.

How was this PR tested?

Release-branch CI runs on this branch once the conflicts are resolved and this PR is marked ready for review.

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

No.

### What changes were proposed in this PR?

Use the destination worker, rather than the sender, when deciding
whether an unacknowledged network message can be resent.

```text
Before: timeout -> sender exists -> resend toward a removed destination
After:  timeout -> destination exists -> resend; otherwise keep the message pending
```

Regression tests cover both directions: a registered destination with an
unknown sender resends successfully, while a registered sender with a
missing destination does not resend.

### Any related issues, documentation, discussions?

Closes #6921.

### How was this PR tested?

The two regression tests were added first and both failed against the
old sender guard. After the one-line fix:

```text
sbt "WorkflowExecutionService/testOnly org.apache.texera.amber.engine.architecture.common.PekkoMessageTransferServiceSpec"
```

Result: 5 tests passed.

```text
sbt "scalafixAll --check" "scalafmtCheckAll"
git diff --check
```

Result: all lint, formatting, and diff checks passed.

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

Generated-by: Codex was used for implementation and verification
assistance. I reviewed the final code and test output before submission.

(backported from commit e54ecd2)
@github-actions

Copy link
Copy Markdown
Contributor Author

The cherry-pick conflicted and was committed with conflict markers. Resolve the conflicts on this branch, then mark this PR ready for review.

Conflicting files:

  • amber/src/test/scala/org/apache/texera/amber/engine/architecture/common/PekkoMessageTransferServiceSpec.scala

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant