1fanwang commented on code in PR #22155:
URL: https://github.com/apache/kafka/pull/22155#discussion_r4140561639
##########
streams/integration-tests/src/test/java/org/apache/kafka/streams/integration/ProcessingExceptionHandlerIntegrationTest.java:
##########
@@ -398,6 +407,39 @@ public void
shouldStopProcessingWhenFatalUserExceptionProcessingExceptionHandler
}
}
+ @Test
+ public void shouldExposeOriginalHeadersAfterCachedProcessingError() {
Review Comment:
Looked into folding it into `sourceRawRecordTopologyTestCases()`, but the
aggregate cases there use `groupBy((key, value) -> ...)` which forces an
internal repartition topic. Repartition sinks produce with `record.headers()`,
so a header-removing serde strips headers before the repartition topic, leaving
the downstream aggregate subtopology with empty raw headers. Testing that
`sourceRawHeaders` survives cache eviction requires a non-repartitioning
topology (`groupByKey`), so keeping
`shouldExposeOriginalHeadersAfterCachedProcessingError` dedicated is necessary.
--
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]