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

Inconsistent javadoc for KafkaConsumer.poll behavior when there is no subscription

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.10.1.0
    • consumer
    • None

    Description

      Currently, the javadoc for KafkaConsumer.poll says the following:
      "It is an error to not have subscribed to any topics or partitions before polling for data." However, we don't actually raise an exception if this is the case. Perhaps we should?

      Attachments

        Activity

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

          People

            vahid Vahid Hashemian
            hachikuji Jason Gustafson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment