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

Make persistent checkpointedOffsets optionable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.10.2.0
    • None
    • streams
    • None

    Description

      By looking at the ProcessorStateManager class kafka streams library tries to persist current offset for each partition to the file. It has to use locking mechanism to be sure that there is no other thread/task running which is modifying the .checkpoint file. It does that even if you don't use persistent store in your topology (which is a bit confusing)

      From my understanding this is because you want to make active state restorations faster and not to seek from the beginning (ProcessorStateManager:217)

      We actually run everything in docker environment and we don't restart our microservices - we just run another docker container and delete the old one. We don't use persistent stores and we don't want to have our microservices to write anything to the filesystem.

      We always set aggressive [compact. delete] policy to get the kafka streams internal topics to have them compacted as much as possible and therefore we don't need a fast recovery either - we always have to replay whole topic no matter what.

      Would it be possible to make writing to the file system optionable?

      Thanks!

      L.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Lukas Gemela Lukas Gemela
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: