This is an automated email from the ASF dual-hosted git repository.
github-merge-queue[bot] pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/texera.git
The following commit(s) were added to refs/heads/main by this push:
new b2ff978de9 fix(amber): correct WorkerSpec input port to stop flaky
timeouts (#9046)
b2ff978de9 is described below
commit b2ff978de9121cb1fc2e9c3643cb5a7f819d85ef
Author: Matthew B. <[email protected]>
AuthorDate: Fri Nov 13 23:56:07 2026 +0000
fix(amber): correct WorkerSpec input port to stop flaky timeouts (#9046)
### What changes were proposed in this PR?
- Fixes a flaky `WorkerSpec`: the input port's `AssignPortRequest`
passed `List("")` for `storageUris`, giving the port one (empty) storage
URI where it should have none.
- That extra URI violated `addPort`'s size invariant and produced an
intermittent timeout; the request now passes an empty `storageUris` list
so the input port carries no storage URI.
### Any related issues, documentation, discussions?
Closes: #6036
Supersedes #6037, which the stale bot auto-closed for inactivity. The
branch is now merged up to current `main`.
### How was this PR tested?
- Run `sbt "WorkflowExecutionService/testOnly *WorkerSpec"`, expect the
suite to pass without the intermittent timeout.
- Confirm the input port satisfies `addPort`'s size invariant: its
`storageUris` list is empty, matching a port with no attached storage.
### Was this PR authored or co-authored using generative AI tooling?
Co-authored with Claude Opus 4.8 in compliance with ASF
---------
Signed-off-by: Matthew B. <[email protected]>
---
.../texera/amber/engine/common/rpc/AsyncRPCServer.scala | 14 +++++++++-----
.../amber/engine/architecture/worker/WorkerSpec.scala | 2 +-
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git
a/amber/src/main/scala/org/apache/texera/amber/engine/common/rpc/AsyncRPCServer.scala
b/amber/src/main/scala/org/apache/texera/amber/engine/common/rpc/AsyncRPCServer.scala
index e9a3e2cc45..c49e364af5 100644
---
a/amber/src/main/scala/org/apache/texera/amber/engine/common/rpc/AsyncRPCServer.scala
+++
b/amber/src/main/scala/org/apache/texera/amber/engine/common/rpc/AsyncRPCServer.scala
@@ -100,12 +100,16 @@ class AsyncRPCServer(
} catch {
case err: Throwable =>
- // if error occurs, return it to the sender.
- logger.error("Exception occurred", err)
+ // Log Errors as warnings, other failures as errors, then return to
sender.
+ if (err.isInstanceOf[Error]) {
+ logger.warn(
+ s"RPC handler ${method.getName} raised
${err.getClass.getSimpleName}",
+ err
+ )
+ } else {
+ logger.error("Exception occurred", err)
+ }
returnResult(senderID, id, mkControlError(err))
- // if throw this exception right now, the above message might not be able
- // to be sent out. We do not throw for now.
- // throw err
}
}
diff --git
a/amber/src/test/scala/org/apache/texera/amber/engine/architecture/worker/WorkerSpec.scala
b/amber/src/test/scala/org/apache/texera/amber/engine/architecture/worker/WorkerSpec.scala
index 11cf67ab87..96929eab9a 100644
---
a/amber/src/test/scala/org/apache/texera/amber/engine/architecture/worker/WorkerSpec.scala
+++
b/amber/src/test/scala/org/apache/texera/amber/engine/architecture/worker/WorkerSpec.scala
@@ -173,7 +173,7 @@ class WorkerSpec
)
val addPort1 = AsyncRPCClient.ControlInvocation(
METHOD_ASSIGN_PORT,
- AssignPortRequest(mockPortId, input = true, mkSchema(1).toRawSchema,
List(""), List()),
+ AssignPortRequest(mockPortId, input = true, mkSchema(1).toRawSchema,
List(), List()),
AsyncRPCContext(COORDINATOR, identifier1),
1
)