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

SessionStore.fetch(key) is a performance bottleneck

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.2.0
    • 0.10.2.1, 0.11.0.0
    • streams
    • None

    Description

      When flushing the CachingSessionStore we need to search for the previous value for a session. This involves searching each open RocksDB segment. The code ends up doing a call Segments.segments(0, Long.MAX_VALUE) this results in approximately 3 million gets on a ConcurrentHashMap of which all but 3 of them will be hits.

      Change this code to restrict the segmentIds to search just to the available set.

      Attachments

        Issue Links

          Activity

            People

              damianguy Damian Guy
              damianguy Damian Guy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: