Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ class AsyncRPCServer(
// if error occurs, return it to the sender.
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
// Re-throw Errors (e.g. failed assertions) after replying; only
// Exceptions are returned to the sender and recovered from.
if (err.isInstanceOf[Error]) throw err
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(CONTROLLER, identifier1),
1
)
Expand Down
Loading