You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "gvdutra (via GitHub)" <gi...@apache.org> on 2026/09/05 21:10:02 UTC
[PR] KAFKA-17429 Avoid dirtying cached entries for unchanged records [kafka]
gvdutra opened a new pull request, #23374:
URL: https://github.com/apache/kafka/pull/23374
When a downstream processor writes an unchanged record back into its cached aggregate store, the cache marks it dirty again during flushing. The pending entry is later forwarded during TopologyTestDriver.close(), after the processors have closed, causing a ProcessorStateException.
Preserve the existing cache entry when both its value and record context are unchanged, while updating its LRU position. This prevents the redundant write from leaving another record to flush.
Validation: the regression test fails before the fix and passes afterward in both at-least-once and exactly-once modes. NamedCacheTest, Checkstyle, SpotBugs, Spotless, and git diff --check also pass.
Jira: https://issues.apache.org/jira/browse/KAFKA-17429
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-17429 Avoid dirtying cached entries for unchanged records [kafka]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23374:
URL: https://github.com/apache/kafka/pull/23374#issuecomment-5738950434
A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the `triage` label
should be removed to prevent this automation from happening again.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org