diff --git a/service/history/workflow/cache/cache.go b/service/history/workflow/cache/cache.go index c23da9717bc..70352fde267 100644 --- a/service/history/workflow/cache/cache.go +++ b/service/history/workflow/cache/cache.go @@ -377,8 +377,8 @@ func (c *cacheImpl) makeReleaseFunc( isDirty := wfContext.IsDirty() if isDirty { wfContext.Clear() - logger := log.With(shardContext.GetLogger(), tag.ComponentHistoryCache) - logger.Error("Cache encountered dirty mutable state transaction", + softassert.Fail(shardContext.GetLogger(), "Cache encountered dirty mutable state transaction", + tag.ComponentHistoryCache, tag.WorkflowNamespaceID(wfContext.GetWorkflowKey().NamespaceID), tag.WorkflowID(wfContext.GetWorkflowKey().WorkflowID), tag.WorkflowRunID(wfContext.GetWorkflowKey().RunID),