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

Protocol guide should say that Produce request acks can only be 0, 1, or -1

    XMLWordPrintableJSON

Details

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

    Description

      The protocol guide at http://kafka.apache.org/protocol.html#protocol_messages says that for Produce requests, acks means:

      The number of nodes that should replicate the produce before returning. -1 indicates the full ISR.

      This seems to imply that you can specify values of 2,3,4, etc.

      It would be clearer if the description was more explicit. It should say that the only valid values are 0, 1, and -1, per the code at
      https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/server/ReplicaManager.scala#L382-L384

      Attachments

        Issue Links

          Activity

            People

              mimaison Mickael Maison
              wushujames James Cheng
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: