spring-cloud-stream icon indicating copy to clipboard operation
spring-cloud-stream copied to clipboard

Failure if using multi output function with partitioning support

Open chringwer opened this issue 5 years ago • 3 comments

Describe the issue If a PartitionAwareFunctionWrapper is registered for a multi output function it will be invoked with the output publisher Tuple instead of the actual message. This leads to a java.lang.IllegalArgumentException: Partition key cannot be null error.

To Reproduce Please see this example project for a repro case. https://github.com/chringwer/spring-cloud-stream-bug/tree/partition-key

Version of the framework Spring Cloud Stream 3.1.0-RC1 Spring Cloud Function 3.1.0-RC1

chringwer avatar Dec 14 '20 10:12 chringwer

@olegz I upgraded the demo app to the latest release. The issue still exists. Let me know if you need anything else to reproduce. Thanks!

chringwer avatar Jan 11 '21 11:01 chringwer

@garyrussell

antonywhatever avatar Jul 22 '21 14:07 antonywhatever

We have not addressed this issue nor have we looked at what it would take as the multi-in/out is rarely used feature, hence it is low on the priority. Also, if community member decides to contribute, we'll be happy to work with you

olegz avatar Jul 22 '21 15:07 olegz