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

Kafka Streams metadataForKey method returns null but allMetadata has the details

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.5.1
    • None
    • streams
    • None

    Description

      Our application runs on multiple instances and to enable us to use get the key information from the state store we use "metadataForKey" method to retrieve the StreamMetadata and using the hostname do an RPC call to the host to get the value associated with the key.

      This call was working fine in our DEV and TEST environments, however, it is failing one our production clusters from the start. On further debugging, I noticed the allMetadata() method was returning the state stores with the host details as expected. However, it would not be feasible to go through each store explicitly to get the key details.

      To note, the cluster I am using is a stretch cluster.

      Attachments

        Activity

          People

            Unassigned Unassigned
            maria_87 Maria Thomas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: