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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.4.0
    • 2.4.1
    • streams

    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

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

              Dates

                Created:
                Updated:
                Resolved: