codelipenghui commented on code in PR #18289:
URL: https://github.com/apache/pulsar/pull/18289#discussion_r1011069175
##########
pulsar-broker/src/test/java/org/apache/pulsar/client/api/SimpleProducerConsumerTest.java:
##########
@@ -2462,20 +2464,23 @@ public void testSharedSamePriorityConsumer() throws
Exception {
PulsarClient newPulsarClient2 = newPulsarClient(lookupUrl.toString(),
0);// Creates new client connection
Consumer<byte[]> c3 = newPulsarClient2.newConsumer()
.topic("persistent://my-property/my-ns/my-topic2").subscriptionName("my-subscriber-name")
+ .consumerName("c3")
.subscriptionType(SubscriptionType.Shared).receiverQueueSize(queueSize)
.acknowledgmentGroupTime(0, TimeUnit.SECONDS).subscribe();
@Cleanup
PulsarClient newPulsarClient3 = newPulsarClient(lookupUrl.toString(),
0);// Creates new client connection
Consumer<byte[]> c4 = newPulsarClient3.newConsumer()
.topic("persistent://my-property/my-ns/my-topic2").subscriptionName("my-subscriber-name")
+ .consumerName("c4")
.subscriptionType(SubscriptionType.Shared).receiverQueueSize(queueSize)
.acknowledgmentGroupTime(0, TimeUnit.SECONDS).subscribe();
@Cleanup
PulsarClient newPulsarClient4 = newPulsarClient(lookupUrl.toString(),
0);// Creates new client connection
Consumer<byte[]> c5 = newPulsarClient4.newConsumer()
.topic("persistent://my-property/my-ns/my-topic2").subscriptionName("my-subscriber-name")
+ .consumerName("c5")
Review Comment:
Why we need to remove the consumer name here?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]