Skip to content

fix: use keyed_window.keys for task lookup in accumulator task manager#330

Draft
BulkBeing wants to merge 1 commit intomainfrom
streamsorter
Draft

fix: use keyed_window.keys for task lookup in accumulator task manager#330
BulkBeing wants to merge 1 commit intomainfrom
streamsorter

Conversation

@BulkBeing
Copy link
Contributor

fixes: #327

payload.keys is empty on CLOSE operations since no data is attached, causing "accumulator task not found" errors. keyed_window.keys is the authoritative key identity populated for all operation types. Also updates tests to set keyedWindow.keys independently from payload.keys to match real platform behavior.

I was able to reproduce the issue consistently with the pipeline mentioned in bug report. I'm running the same pipeline locally for an hour now with this fix, no issues so far and messages are reaching sink.

payload.keys is empty on CLOSE operations since no data is attached,
causing "accumulator task not found" errors. keyed_window.keys is the
authoritative key identity populated for all operation types. Also
updates tests to set keyedWindow.keys independently from payload.keys
to match real platform behavior.

Signed-off-by: Sreekanth <prsreekanth920@gmail.com>
@codecov
Copy link

codecov bot commented Mar 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.20%. Comparing base (a66cdda) to head (cec80ff).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #330      +/-   ##
==========================================
+ Coverage   94.17%   94.20%   +0.03%     
==========================================
  Files          66       66              
  Lines        3092     3091       -1     
  Branches      162      162              
==========================================
  Hits         2912     2912              
  Misses        149      149              
+ Partials       31       30       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

streamsorter aborted with "accumulator task not found" in case of certain generator inputs

1 participant