Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.0.0
    • Fix Version/s: 0.9.0.0, 0.10.0.0
    • Component/s: clients
    • Labels:
      None

      Description

      The KafkaConsumer docs use a non-existent method for assigning partitions (consumer.assign).

      The JavaDocs show as:
      String topic = "foo";
      TopicPartition partition0 = new TopicPartition(topic, 0);
      TopicPartition partition1 = new TopicPartition(topic, 1);
      consumer.assign(partition0);
      consumer.assign(partition1);

      Should be:
      String topic = "foo";
      TopicPartition partition0 = new TopicPartition(topic, 0);
      TopicPartition partition1 = new TopicPartition(topic, 1);
      consumer.assign(Arrays.asList(partition0));
      consumer.assign(Arrays.asList(partition1));

        Attachments

        1. docspatch.diff
          0.9 kB
          Jesse Anderson

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              eljefe6aa Jesse Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: