gvolpe commented on code in PR #15190:
URL: https://github.com/apache/pulsar/pull/15190#discussion_r854771483


##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerBase.java:
##########
@@ -466,7 +466,7 @@ public CompletableFuture<Void> 
reconsumeLaterAsync(Message<?> message, long dela
     public CompletableFuture<Void> reconsumeLaterAsync(
             Message<?> message, Map<String, String> customProperties, long 
delayTime, TimeUnit unit) {
         if (!conf.isRetryEnable()) {
-            return FutureUtil.failedFuture(new 
PulsarClientException("reconsumeLater method not support!"));
+            return FutureUtil.failedFuture(new 
PulsarClientException("reconsumeLater method not supported! Have you enabled 
retries in your consumer?"));

Review Comment:
   @michaeljmarshall that's a good idea (there's a typo in that commit 
suggestion, though 😄 ), but I would still add where retryEnabled is false (in 
the `ConsumerBuilder`), I think that'd make for a better error message. 



-- 
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]

Reply via email to