eatmoreduck commented on PR #24253: URL: https://github.com/apache/kafka/pull/24253#issuecomment-6936131867
Thanks @aliehsaeedii — all four findings addressed in 07883930f6: - **In-memory markers**: you're right, `WrappedStateStore` has no `readOnly` of its own, so all five `InMemory*Marker` classes inherited the interface default. They now forward `readOnly(isolationLevel)` to `wrapped()` (the in-memory path needs no format conversion, so plain forwarding suffices). Covered by a builder-level test that runs a real `InMemoryKeyValueStore` through `TimestampedKeyValueStoreBuilder` with caching/logging disabled, puts a value, and checks the `READ_UNCOMMITTED` view sees it through the marker. - **Non-transactional window tests**: both window adapter tests now build a real transactional stack (`processing.guarantee=exactly_once_v2`, `enable.transactional.statestores=true`) and assert the three-way split you described — the staged write is invisible to the `READ_COMMITTED` view, visible (and converted) to the `READ_UNCOMMITTED` view, and visible to both after `commit`. - **Iterator coverage**: the window views get parameterized accessor tests mirroring `shouldConvertValue` (8 accessors over the `ReadOnlyWindowStore` surface), and the two key-value views get iterator-conversion tests over `range`/`reverseRange`/`all`/`reverseAll`/`prefixScan` — a wrong iterator wrapper would now fail. - **spotless**: `spotlessApply` run; `:streams:spotlessCheck` and `checkstyleMain`/`checkstyleTest` pass locally, along with the full `state.internals` package. -- 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]
