Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-14993

Improve TransactionIndex instance handling while copying to and fetching from RSM.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 3.6.0
    • core

    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

          Activity

            People

              abhijeetkumar Abhijeet Kumar
              satish.duggana Satish Duggana
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: