minsang-alt opened a new pull request, #23175:
URL: https://github.com/apache/kafka/pull/23175

   ## Summary
   
   - guard null-deserialized values in the range-query and plain key-value 
store iterators
   - return a null value for `RangeQuery`, `TimestampedRangeQuery`, and plain 
range results where the query contract permits it
   - throw a descriptive `StreamsException` containing the key when a 
`ReadOnlyRecord` cannot be constructed
   - add regression coverage for all three iterator implementations
   
   The handling mirrors the existing null guards in the window and session 
store iterators. Empty headers are used only to deserialize the key when the 
wrapped value is null.
   
   ## Testing
   
   - `./gradlew :streams:test --tests 
org.apache.kafka.streams.state.internals.MeteredTimestampedKeyValueStoreWithHeadersTest
 --no-daemon`
   - `./gradlew :streams:spotlessCheck :streams:checkstyleMain 
:streams:checkstyleTest :streams:spotbugsMain :streams:spotbugsTest -x test 
--no-daemon`
   
   I confirm that this contribution is my original work and I license it to the 
project under the project's open source license.
   
   Generated-by: Aside AI


-- 
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