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

New consumer should throw InvalidTopicException on poll when invalid topic in metadata

    XMLWordPrintableJSON

Details

    Description

      A call to consumer.poll should throw InvalidTopicException if an invalid topic is discovered in metadata. This can be easily reproduced by calling subscribe("invalid topic") and then poll, for example.The new consumer does not throw the expected InvalidTopicException like the LegacyKafkaConsumer does.

      The legacy consumer achieves this by checking for metadata exceptions on every iteration of the ConsumerNetworkClient (see here)

      This is probably what makes that testSubscriptionOnInvalidTopic fails for the new consumer. Once this bug is fixed, we should be able to enable that test for the new consumer.

      Attachments

        Activity

          People

            appchemist appchemist
            lianetm Lianet Magrans
            Lucas Brutschy Lucas Brutschy
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: