liudezhi2098 opened a new issue #6388: when sending a message, set duplicate key to properties, can't pull the message while concumer URL: https://github.com/apache/pulsar/issues/6388 **Describe the bug** when sending a message, set duplicate key to properties, can't pull the message while concumer, and it can’t be consumed anymore **To Reproduce** _producer client_ ```java producer.newMessage().value("Hello") .property("TagA", "taga") .property("TagA", "tagb") .send() ```` _consumer client_ ```java 2020-02-21 10:24:46 WARN pulsar-client-io-1-1 - [/127.0.0.1:6650] Got exception IllegalStateException : Duplicate key TagA java.lang.IllegalStateException: Duplicate key TagA at java.util.stream.Collectors.lambda$throwingMerger$135(Collectors.java:133) ~[na:1.8.0_20] at java.util.stream.Collectors$$Lambda$84/1635934342.apply(Unknown Source) ~[na:na] at java.util.HashMap.merge(HashMap.java:1245) ~[na:1.8.0_20] at java.util.stream.Collectors.lambda$toMap$193(Collectors.java:1320) ~[na:1.8.0_20] at java.util.stream.Collectors$$Lambda$86/674653444.accept(Unknown Source) ~[na:na] at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) ~[na:1.8.0_20] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374) ~[na:1.8.0_20] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512) ~[na:1.8.0_20] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502) ~[na:1.8.0_20] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[na:1.8.0_20] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:1.8.0_20] at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[na:1.8.0_20] at org.apache.pulsar.client.impl.MessageImpl.<init>(MessageImpl.java:109) ~[pulsar-client.jar:2.5.0] at org.apache.pulsar.client.impl.ConsumerImpl.messageReceived(ConsumerImpl.java:1039) ~[pulsar-client.jar:2.5.0] at org.apache.pulsar.client.impl.ClientCnx.handleMessage(ClientCnx.java:383) ~[pulsar-client.jar:2.5.0] at org.apache.pulsar.common.protocol.PulsarDecoder.channelRead(PulsarDecoder.java:183) ~[pulsar-client.jar:2.5.0] at org.apache.pulsar.shade.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:374) [pulsar-client.jar:2.5.0] at org.apache.pulsar.shade.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:360) [pulsar-client.jar:2.5.0] ````
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
