Details
-
Improvement
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
None
Description
RSM should throw a ResourceNotFoundException if it does not have TransactionIndex. Currently, it expects an empty InputStream and creates an unnecessary file in the cache. This can be avoided by catching ResourceNotFoundException and not creating an instance. There are minor cleanups needed in RemoteIndexCache and other TransactionIndex usages.
Also, update the LocalTieredStorage, see this comment.
Note, please remember to update the javadoc in RSM after the fix. See: https://github.com/apache/kafka/pull/14352
Attachments
Issue Links
- is a child of
-
KAFKA-7739 Kafka Tiered Storage
- Resolved
- links to