This is an automated email from the ASF dual-hosted git repository.

rdhabalia pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 6bca70b1380 [fix][client] Add more info while throwing reader creation 
exception (#23401)
6bca70b1380 is described below

commit 6bca70b1380fd97a0a1ea23bdc0bf918bd6defee
Author: Rajan Dhabalia <[email protected]>
AuthorDate: Fri Oct 4 16:09:48 2024 -0700

    [fix][client] Add more info while throwing reader creation exception 
(#23401)
---
 .../src/main/java/org/apache/pulsar/client/impl/ReaderBuilderImpl.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ReaderBuilderImpl.java
 
b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ReaderBuilderImpl.java
index ef230475be5..d0ab90068ed 100644
--- 
a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ReaderBuilderImpl.java
+++ 
b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ReaderBuilderImpl.java
@@ -92,7 +92,8 @@ public class ReaderBuilderImpl<T> implements ReaderBuilder<T> 
{
             return FutureUtil
                     .failedFuture(new IllegalArgumentException(
                             "Start message id or start message from roll back 
must be specified but they cannot be"
-                                    + " specified at the same time"));
+                                    + " specified at the same time. MessageId 
=" + conf.getStartMessageId()
+                                    + ", rollback seconds =" + 
conf.getStartMessageFromRollbackDurationInSec()));
         }
 
         if (conf.getStartMessageFromRollbackDurationInSec() > 0) {

Reply via email to