dwang-qm commented on issue #23451:
URL: https://github.com/apache/pulsar/issues/23451#issuecomment-2412433408

   Thanks for the response! When Pulsar 4.0 is released, we will upgrade to it 
and see if we can observe the issue. In the meantime, we're going to update the 
client, since it looks similar to the issue filed against the client I 
referenced. I did see many retries in the logs, albeit against the same broker, 
within a short period of time, and they all failed. Unfortunately, the 
application code is not in control of any retries necessary due to "eventual 
consistency," since the client tries to create the new producer automatically 
after it periodically polls and detects new partitions have been added.
   
   If you don't mind answering, I noticed that the reason that the client was 
trying to talk to the broker to create the producer in the first place is 
because it got the broker (in my case pulsar-broker-35) from a LOOKUP it did 
earlier. If so, that's confusing because it means it thinks that broker owns 
the topic (in my case named xxxx-partition-1), but wouldn't that broker have to 
actively claim the topic somehow, in which case it should've had the correct 
metadata to see that there was now more than one partition? See, xxxx is 
originally a partitioned topic with only one partition (so with only 
xxxx-partition-0 as a valid topic name), but after the topic metadata update, 
the C++ client looked up the new partitions and was told to connect to 
xxxx-partition-1 on pulsar-broker-35. But pulsar-broker-35 thinks there's only 
one partition in the topic. How could it when it seems to have claimed 
xxxx-partition-1?


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