temporal icon indicating copy to clipboard operation
temporal copied to clipboard

Workflow cannot be terminated

Open AZAZELPE opened this issue 4 months ago • 0 comments

Expected Behavior

  1. Go to Temporal UI
  2. Select the workflow from the list
  3. Click Terminate [workflow]
  4. Workflow terminated

Actual Behavior

  1. Go to Temporal UI
  2. Select the workflow from the list
  3. Click Terminate [workflow]
  4. Error message -> cannot terminate workflow

Steps to Reproduce the Problem

  1. Create a workflow.
  2. Start the workflow with a transaction size greater than limit of 4MB.
  3. Try to terminate workflow. (ERROR)

Specifications

  • Version: 2.19
  • Platform: Self-hosted

Error messages on the Temporal Server that are shown many times

{"level":"error","ts":"2024-09-26T16:32:30.826Z","msg":"Operation failed with internal error.","error":"transaction size of 5074977 bytes exceeds limit of 4194304 bytes","operation":"UpdateWorkflowExecution","logging-call-at":"persistenceMetricClients.go:1163","stacktrace":"go.temporal.io/server/common/log.(*zapLogger).Error\n\t/home/builder/temporal/common/log/zap_logger.go:144\ngo.temporal.io/server/common/persistence.updateErrorMetric\n\t/home/builder/temporal/common/persistence/persistenceMetricClients.go:1163\ngo.temporal.io/server/common/persistence.(*metricEmitter).recordRequestMetrics\n\t/home/builder/temporal/common/persistence/persistenceMetricClients.go:1140\ngo.temporal.io/server/common/persistence.(*executionPersistenceClient).UpdateWorkflowExecution.func1\n\t/home/builder/temporal/common/persistence/persistenceMetricClients.go:243\ngo.temporal.io/server/common/persistence.(*executionPersistenceClient).UpdateWorkflowExecution\n\t/home/builder/temporal/common/persistence/persistenceMetricClients.go:245\ngo.temporal.io/server/common/persistence.(*executionRetryablePersistenceClient).UpdateWorkflowExecution.func1\n\t/home/builder/temporal/common/persistence/persistenceRetryableClients.go:258\ngo.temporal.io/server/common/backoff.ThrottleRetryContext\n\t/home/builder/temporal/common/backoff/retry.go:194\ngo.temporal.io/server/common/persistence.
[....]

and also

{"level":"error","ts":"2024-09-26T16:32:30.827Z","msg":"Update workflow execution operation failed.","shard-id":1,"address":"10.0.221.155:7234","wf-namespace-id":"66e88c5d-4ba5-44e2-b1c2-84e812375fc4","wf-id":"import-2b46bd7f-66fb-4693-a14e-411ec22d7adc-7f158055-c6dc-48bf-93ef-354380522481","wf-run-id":"e4e45073-2a8b-4c84-884c-e0946b60bbb7","store-operation":"update-wf-execution","error":"transaction size of 5074977 bytes exceeds limit of 4194304 bytes","logging-call-at":"transaction_impl.go:455","stacktrace":"go.temporal.io/server/common/log.(*zapLogger).Error\n\t/home/builder/temporal/common/log/zap_logger.go:144\ngo.temporal.io/server/service/history/workflow.updateWorkflowExecution\n\t/home/builder/temporal/service/history/workflow/transaction_impl.go:455\ngo.temporal.io/server/service/history/workflow.
[...]

AZAZELPE avatar Oct 10 '24 15:10 AZAZELPE