Skip to content
Merged
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 @@ -63,6 +63,7 @@ public class MetricsTest {

@Before
public void setUp() {
registry.clear();
tagsNamespaceQueue =
replaceTags(TAGS_NAMESPACE, MetricsTag.TASK_QUEUE, testWorkflowRule.getTaskQueue());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -488,14 +488,16 @@ public void completeWorkflowTask(

if (unhandledCommand(request) || unhandledMessages(request)) {
// Fail the workflow task if there are new events or messages and a command tries to
// complete the
// workflow
// complete the workflow. Record the failure in history, then throw an error to the
// caller (matching real server behavior).
failWorkflowTaskWithAReason(
WorkflowTaskFailedCause.WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_COMMAND,
null,
ctx,
request,
false);
ctx.setExceptionIfEmpty(
Status.INVALID_ARGUMENT.withDescription("UnhandledCommand").asRuntimeException());
return;
}

Expand Down
Loading