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

StateStores can be connected to the wrong source topic resulting in incorrect metadata returned from IQ

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.1.0, 0.10.1.1, 0.10.2.0
    • 0.10.2.0
    • streams
    • None

    Description

      When building a topology with tables and StateStores, the StateStores are mapped to the source topic names. This map is retrieved via TopologyBuilder.stateStoreNameToSourceTopics() and is used in Interactive Queries to find the source topics and partitions when resolving the partitions that particular keys will be in.

      There is an issue where by this mapping for a table that is originally created with builder.table("topic", "table");, and then is subsequently used in a join, is changed to the join topic. This is because the mapping is updated during the call to topology.connectProcessorAndStateStores(..).

      In the case that the stateStoreNameToSourceTopics Map already has a value for the state store name it should not update the Map.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: