nodece commented on code in PR #26179:
URL: https://github.com/apache/pulsar/pull/26179#discussion_r3575743906
##########
pulsar-broker/src/test/java/org/apache/pulsar/broker/service/persistent/BucketDelayedDeliveryTest.java:
##########
@@ -126,6 +128,60 @@ public void
testBucketDelayedDeliveryWithAllConsumersDisconnecting() throws Exce
Assert.assertEquals(bucketKeys, bucketKeys2);
}
+ @Test
+ public void testIncrementPartitionsDoesNotCopyBucketDelayedDeliveryState()
throws Exception {
+ String topic =
BrokerTestUtil.newUniqueName("persistent://public/default/testBucketStatePartitionExpansion");
+ String subscriptionName = "sub";
+ admin.topics().createPartitionedTopic(topic, 1);
+ String sourcePartition =
TopicName.get(topic).getPartition(0).toString();
+
+ @Cleanup
+ Consumer<String> sourceConsumer =
pulsarClient.newConsumer(Schema.STRING)
+ .topic(sourcePartition)
+ .subscriptionName(subscriptionName)
+ .subscriptionType(SubscriptionType.Shared)
+ .subscribe();
+ @Cleanup
+ Producer<String> producer = pulsarClient.newProducer(Schema.STRING)
+ .topic(sourcePartition)
Review Comment:
```suggestion
.topic(sourcePartition)
.enableBatching(false)
```
--
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]