@@ -30,7 +30,6 @@ import (
3030 "go.temporal.io/server/common/persistence"
3131 "go.temporal.io/server/common/persistence/visibility/manager"
3232 "go.temporal.io/server/common/searchattribute"
33- "go.temporal.io/server/common/softassert"
3433 "go.temporal.io/server/common/tasktoken"
3534 "go.temporal.io/server/common/worker_versioning"
3635 "go.temporal.io/server/service/history/api"
@@ -130,12 +129,6 @@ func (handler *WorkflowTaskCompletedHandler) Invoke(
130129 metrics .StaleMutableStateCounter .With (handler .metricsHandler ).Record (
131130 1 ,
132131 metrics .OperationTag (metrics .HistoryRespondWorkflowTaskCompletedScope ))
133- softassert .Sometimes (handler .logger ).Debug ("stale mutable state detected" ,
134- tag .WorkflowID (token .GetWorkflowId ()),
135- tag .WorkflowRunID (token .GetRunId ()),
136- tag .WorkflowScheduledEventID (token .GetScheduledEventId ()),
137- tag .NewInt64 ("mutable-state-next-event-id" , mutableState .GetNextEventID ()),
138- )
139132 return false
140133 }
141134 return true
@@ -173,7 +166,7 @@ func (handler *WorkflowTaskCompletedHandler) Invoke(
173166 // This is NOT 100% bulletproof solution because this write operation may also fail.
174167 // TODO: remove this call when GetWorkflowExecutionHistory includes speculative WFT events.
175168 if clearStickyErr := handler .clearStickyTaskQueue (ctx , workflowLease .GetContext ()); clearStickyErr != nil {
176- softassert . Sometimes ( handler .logger ) .Error ("Failed to clear stickiness after speculative workflow task failed to complete." ,
169+ handler .logger .Error ("Failed to clear stickiness after speculative workflow task failed to complete." ,
177170 tag .NewErrorTag ("clear-sticky-error" , clearStickyErr ),
178171 tag .Error (retError ),
179172 tag .WorkflowID (token .GetWorkflowId ()),
@@ -232,7 +225,7 @@ func (handler *WorkflowTaskCompletedHandler) Invoke(
232225 if retError != nil {
233226 cancelled := effects .Cancel (ctx )
234227 if cancelled {
235- softassert . Sometimes ( handler .logger ) .Info ("Canceled effects due to error" ,
228+ handler .logger .Info ("Canceled effects due to error" ,
236229 tag .Error (retError ),
237230 tag .WorkflowID (token .GetWorkflowId ()),
238231 tag .WorkflowRunID (token .GetRunId ()),
@@ -291,11 +284,6 @@ func (handler *WorkflowTaskCompletedHandler) Invoke(
291284 metrics .NamespaceTag (nsName ),
292285 )
293286 metrics .WorkflowTaskHeartbeatTimeoutCounter .With (scope ).Record (1 )
294- softassert .Sometimes (handler .logger ).Debug ("workflow task heartbeat timed out" ,
295- tag .WorkflowNamespaceID (nsName ),
296- tag .WorkflowID (token .GetWorkflowId ()),
297- tag .WorkflowRunID (token .GetRunId ()),
298- )
299287 completedEvent , err = ms .AddWorkflowTaskTimedOutEvent (currentWorkflowTask )
300288 if err != nil {
301289 return nil , err
@@ -350,12 +338,6 @@ func (handler *WorkflowTaskCompletedHandler) Invoke(
350338 // and admitted updates are lost. Uncomment this check when durable admitted is implemented
351339 // or updates stay in the registry after WFT is failed.
352340 hasBufferedEventsOrMessages := ms .HasBufferedEvents () // || updateRegistry.HasOutgoingMessages(false)
353- if hasBufferedEventsOrMessages {
354- softassert .Sometimes (handler .logger ).Debug ("workflow has buffered events/messages" ,
355- tag .WorkflowID (token .GetWorkflowId ()),
356- tag .WorkflowRunID (token .GetRunId ()),
357- )
358- }
359341 if err := namespaceEntry .VerifyBinaryChecksum (request .GetBinaryChecksum ()); err != nil {
360342 wtFailedCause = newWorkflowTaskFailedCause (
361343 enumspb .WORKFLOW_TASK_FAILED_CAUSE_BAD_BINARY ,
@@ -465,7 +447,7 @@ func (handler *WorkflowTaskCompletedHandler) Invoke(
465447 metrics .FailureTag (wtFailedCause .failedCause .String ()),
466448 metrics .FirstAttemptTag (currentWorkflowTask .Attempt ),
467449 )
468- softassert . Sometimes ( handler .logger ) .Info ("Failing the workflow task." ,
450+ handler .logger .Info ("Failing the workflow task." ,
469451 tag .Value (wtFailedCause .Message ()),
470452 tag .WorkflowID (token .GetWorkflowId ()),
471453 tag .WorkflowRunID (token .GetRunId ()),
@@ -641,12 +623,6 @@ func (handler *WorkflowTaskCompletedHandler) Invoke(
641623 // if updateErr resulted in TransactionSizeLimitError then fail workflow
642624 switch updateErr .(type ) {
643625 case * persistence.TransactionSizeLimitError :
644- softassert .Sometimes (handler .logger ).Debug ("workflow terminated due to size limit" ,
645- tag .WorkflowID (token .GetWorkflowId ()),
646- tag .WorkflowRunID (token .GetRunId ()),
647- tag .Error (updateErr ),
648- )
649-
650626 // must reload mutable state because the first call to updateWorkflowExecutionWithContext or continueAsNewWorkflowExecution
651627 // clears mutable state if error is returned
652628 ms , err = weContext .LoadMutableState (ctx , handler .shardContext )
0 commit comments