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

Thread unsafe use of HashMap stored in QueryableStoreProvider#storeProviders

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.6.1
    • 3.8.0
    • streams

    Description

      This was originally raised in a kafka-users post.

      There is a HashMap stored in QueryableStoreProvider#storeProviders (code link) which can be mutated by a KafkaStreams#removeStreamThread() call. This can be problematic when KafkaStreams#store is called from a separate thread.

      We need to somehow make this part of code thread-safe by replacing it by ConcurrentHashMap or/and using an existing locking mechanism.

      Attachments

        Issue Links

          Activity

            People

              xkylex Kohei Nozaki
              xkylex Kohei Nozaki
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: