Skip to content

test: reproducer for terminated workflows retained by the sticky cache - #3040

Draft
xepozz wants to merge 1 commit into
temporalio:mainfrom
xepozz:reproduce/terminated-runs-sticky-cache
Draft

test: reproducer for terminated workflows retained by the sticky cache#3040
xepozz wants to merge 1 commit into
temporalio:mainfrom
xepozz:reproduce/terminated-runs-sticky-cache

Conversation

@xepozz

@xepozz xepozz commented Aug 27, 2026

Copy link
Copy Markdown

What was changed

Reproducer: externally terminated workflows are retained by the sticky cache until LRU capacity evicts them. Each dead run keeps its full cached state and its workflow thread — 300 terminated runs × 1 MB char[]: heap 18 → 510 MB, 164 workflow threads pinned.

Why?

The server dispatches no workflow task on termination, so the worker never learns the run is closed; LRU pressure is the only reclaim path. Same behavior as temporalio/sdk-go#2629 (reproducer temporalio/sdk-go#2628). Related: temporalio/features#573, temporalio/sdk-php#635.

Checklist

  1. Closes

  2. How was this tested:

  1. Any docs updates needed?

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