nicktelford opened a new pull request, #22314: URL: https://github.com/apache/kafka/pull/22314
The cache holds uncommitted writes that must not be visible under READ_COMMITTED, so that isolation level bypasses the cache entirely and delegates straight to the inner store's readOnly view. READ_UNCOMMITTED requires a merged view of both cache and store through a ReadOnlyView. The ReadOnlyView converts Instant arguments to epoch-milliseconds before calling the shared fetchInternal/fetchKeyRangeInternal/fetchAllInternal helpers rather than converting at the merge boundary; the cache key schema operates in longs throughout, so converting early avoids repeated Instant-to-long conversions in iterator hot paths. KAFKA-20497 -- 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]
