Kafka
  1. Kafka
  2. KAFKA-247

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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

        Blake Matheny created issue -
        Neha Narkhede made changes -
        Field Original Value New Value
        Labels newbie
        Hide
        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
        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.
        Pierre-Yves Ritschard made changes -
        Pierre-Yves Ritschard made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Hide
        Jun Rao added a comment -

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

        Show
        Jun Rao added a comment - Pierre-Yves, thanks for the patch. Took MaxFetchSize out and committed the patch.
        Jun Rao made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Assignee Pierre-Yves Ritschard [ pyritschard ]
        Fix Version/s 0.7.1 [ 12319140 ]
        Resolution Fixed [ 1 ]
        Neha Narkhede made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Tony Stevenson made changes -
        Workflow no-reopen-closed, patch-avail [ 12649063 ] Apache Kafka Workflow [ 13052470 ]
        Tony Stevenson made changes -
        Workflow Apache Kafka Workflow [ 13052470 ] no-reopen-closed, patch-avail [ 13055199 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        15h 50m 1 Pierre-Yves Ritschard 14/Jan/12 10:12
        Patch Available Patch Available Resolved Resolved
        3d 7h 20m 1 Jun Rao 17/Jan/12 17:32
        Resolved Resolved Closed Closed
        883d 11h 44m 1 Neha Narkhede 19/Jun/14 05:16

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development