Skip to content

fix: prevent workflow recycle nil pointer panic - #677

Merged
LordofAvernus merged 1 commit into
release-4.2508.xfrom
fix-997-release-4.2508
Oct 26, 2026
Merged

LordofAvernus merged 1 commit into
release-4.2508.xfrom
fix-997-release-4.2508

Conversation

@LordofAvernus

@LordofAvernus LordofAvernus commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

DMS EE v4.2508.1 calls GetTaskIds while converting workflows returned by the daily recycle query, but that query does not preload WorkflowRecord. An expired workflow therefore causes a nil-pointer panic and process restart.

Summary

  • make Workflow.GetTaskIds safe when WorkflowRecord is not loaded
  • add a lightweight query that selects only expired workflow UIDs
  • add tests for nil association handling and expiration filtering

Test plan

  • go test -vet=off ./internal/dms/storage/model ./internal/dms/storage -run 'TestWorkflowGetTaskIds|TestListExpiredWorkflowUIDs' -count=1
  • go vet -printf=false ./internal/dms/storage/model ./internal/dms/storage ./internal/dms/biz

Refs actiontech/dms-ee#997

@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🧪 PR contains tests
🔒 No security concerns identified
⚡ No major issues detected

@github-actions

Copy link
Copy Markdown

PR Code Suggestions ✨

No code suggestions found for the PR.

@LordofAvernus
LordofAvernus merged commit a65e275 into release-4.2508.x Oct 26, 2026
1 check passed
@LordofAvernus
LordofAvernus deleted the fix-997-release-4.2508 branch October 26, 2026 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant