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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to