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

java.lang.IllegalArgumentException: Number of partitions must be at least 1.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.1
    • Component/s: streams
    • Labels:

      Description

      Hey,

      When trying to upgrade our Kafka streams client to 2.4.0 (from 2.3.1) we encountered the following exception: 

      java.lang.IllegalArgumentException: Number of partitions must be at least 1.
      

      It's important to notice that the exact same code works just fine at 2.3.1.

       

      I have created a "toy" example which reproduces this exception:

      https://gist.github.com/nitayk/50da33b7bcce19ad0a7f8244d309cb8f

      and I would love to get some insight regarding why its happening / ways to get around it

       

      Thanks

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bchen225242 Boyang Chen
                Reporter:
                nitay.k Nitay Kufert
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: