File tree 1 file changed +2
-2
lines changed
pulsar-broker/src/test/java/org/apache/pulsar/client/api
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -464,7 +464,7 @@ public void testRetryTopicNameForCompatibility () throws Exception {
464
464
}
465
465
466
466
/**
467
- * The test is disabled {@link https://github.com/apache/pulsar/issues/2647}.
467
+ * Test retry topic with multiple topics
468
468
* @throws Exception
469
469
*/
470
470
@ Test
@@ -482,7 +482,6 @@ public void testRetryTopicWithMultiTopic() throws Exception {
482
482
.subscriptionName ("my-subscription" )
483
483
.subscriptionType (SubscriptionType .Shared )
484
484
.enableRetry (true )
485
- .ackTimeout (1 , TimeUnit .SECONDS )
486
485
.deadLetterPolicy (DeadLetterPolicy .builder ().maxRedeliverCount (maxRedeliveryCount ).build ())
487
486
.receiverQueueSize (100 )
488
487
.subscriptionInitialPosition (SubscriptionInitialPosition .Earliest )
@@ -518,6 +517,7 @@ public void testRetryTopicWithMultiTopic() throws Exception {
518
517
Message <byte []> message = consumer .receive ();
519
518
log .info ("consumer received message : {} {} - total = {}" ,
520
519
message .getMessageId (), new String (message .getData ()), ++totalReceived );
520
+ consumer .reconsumeLater (message , 1 , TimeUnit .SECONDS );
521
521
} while (totalReceived < sendMessages * (maxRedeliveryCount + 1 ));
522
522
523
523
int totalInDeadLetter = 0 ;
You can’t perform that action at this time.
0 commit comments