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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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:

              Slack

                Issue deployment