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

SessionStore.fetch(key) is a performance bottleneck

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.2.0
    • Fix Version/s: 0.10.2.1, 0.11.0.0
    • Component/s: streams
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: