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

max.message.size and fetch.size defaults should be consistent

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.7
    • Fix Version/s: 0.7.1
    • Component/s: None
    • Labels:

      Description

      The default max.message.size for a producer is ~976kB. The default fetch.size for a consumer is 300kB. Having the default fetch.size less than the default max.message.size causes new users with messages larger than fetch.size to run into the InvalidMessageSizeException issue.

      Making the default max.message.size less than or equal to the default fetch.size would eliminate that problem for most new setups.

        Activity

        Hide
        pyritschard Pierre-Yves Ritschard added a comment -

        The rationale here is to bump fetch.size a bit beyond the
        default produce size.

        Coincidentally, it seems that the MaxFetchSize property is used
        nowhere throughout the code.

        Show
        pyritschard Pierre-Yves Ritschard added a comment - The rationale here is to bump fetch.size a bit beyond the default produce size. Coincidentally, it seems that the MaxFetchSize property is used nowhere throughout the code.
        Hide
        junrao Jun Rao added a comment -

        Pierre-Yves, thanks for the patch. Took MaxFetchSize out and committed the patch.

        Show
        junrao Jun Rao added a comment - Pierre-Yves, thanks for the patch. Took MaxFetchSize out and committed the patch.

          People

          • Assignee:
            pyritschard Pierre-Yves Ritschard
            Reporter:
            bmatheny Blake Matheny
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development