Uploaded image for project: 'Spring XD'
  1. Spring XD
  2. XD-3697

Output modules cannot use minPartitionCount when sending to named channels

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.2.1
    • Fix Version/s: 1.3 GA, 1.2.2
    • Component/s: None
    • Labels:
      None
    • Story Points:
      1
    • Rank (Obsolete):
      9223372036854775807
    • Acceptance Criteria:
      Hide

      Output modules that uses named channels can set the property minPartitionCount when using Kafka as a transport layer.

      Show
      Output modules that uses named channels can set the property minPartitionCount when using Kafka as a transport layer.
    • Sprint:
      Sprint 62

      Description

      If the output module is connected to a named channel, cannot be set up the property minPartitionCount, it is giving an exception.

      Streams:
      stream create f --definition "queue:foo > transform --expression=payload+'-foo' | log"
      stream create b --definition "queue:bar > transform --expression=payload+'-bar' | log"
      stream deploy --name f --properties "module.transform.count=2"
      stream deploy --name b --properties "module.transform.count=2"

      stream create r --definition "time | router --expression=payload.contains('10')?'queue:foo':'queue:bar'"
      stream deploy --name r --properties "module.router.producer.minPartitionCount=20"

      The error is:
      Caused by: java.lang.IllegalArgumentException: KafkaMessageBus does not support producer property: minPartitionCount for queue:bar.
      at org.springframework.xd.dirt.integration.bus.MessageBusSupport.validateProperties(MessageBusSupport.java:781) ~[spring-xd-messagebus-spi-1.2.1.RELEASE.jar:1.2.1.RELEASE]

        Attachments

          Activity

            People

            Assignee:
            grussell Gary Russell
            Reporter:
            dgarcia Daniel Garcia Perez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: