rdhabalia opened a new pull request #3240: timeout stuck producer/consumer operation request URL: https://github.com/apache/pulsar/pull/3240 ### Motivation Sometimes due to broker's bug, broker could not complete producer/consumer creation request and in this case, client is not timing out which causes stuck producer/consumer/replicator-producer. Recently we have seen that due to below exception replication producer gets stuck and remote broker is not notifying to the repl-producer. ``` Caused by: java.lang.NullPointerException at org.apache.pulsar.broker.service.persistent.PersistentTopic.hasSchema(PersistentTopic.java:1815) ~[pulsar-broker-2.2.2-yahoo.jar:2.2.2-yahoo] at org.apache.pulsar.broker.service.ServerCnx.lambda$25(ServerCnx.java:836) ~[pulsar-broker-2.2.2-yahoo.jar:2.2.2-yahoo] at java.util.concurrent.CompletableFuture.uniAccept(CompletableFuture.java:656) ~[?:1.8.0_131] ... 24 more ``` ### Modifications Client producer/consumer creation timesout after configured operation-timeout if broker doesn't complete request in a given timeout. ### Result It helps to unblock stuck producer/consumer request.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services