TakaHiR07 commented on PR #22860: URL: https://github.com/apache/pulsar/pull/22860#issuecomment-2207948571
@shibd I have a concern about this pr. After this pr, the process is "topicFuture timeout -> close topic -> remove topicFuture". During the "close topic", client can acquire the timeout response immediately and retry. That means, if topicFuture timeout, client may generate a large amount of retry requests to server. Is seems not very good. I have test and see client retry frequently in log ``` 17:53:05.357 [pulsar-io-32-30] INFO org.apache.pulsar.broker.service.ServerCnx - [[id: 0xce950df8, L:/ip1:6651 - R:/ip2:50384]] Subscribing on topic persistent://test/test/test-partition-0 / test_304_pulsar. consumerId: 43 17:53:05.357 [pulsar-io-32-30] WARN org.apache.pulsar.broker.service.ServerCnx - [/ip2:50384][persistent://test/test/test-partition-0][test_304_pulsar] Failed to create consumer: consumerId=43, Failed to load topic within timeout 17:53:05.472 [pulsar-io-32-30] INFO org.apache.pulsar.broker.service.ServerCnx - [[id: 0xce950df8, L:/ip1:6651 - R:/ip2:50384]] Subscribing on topic persistent://test/test/test-partition-0 / test_304_pulsar. consumerId: 43 17:53:05.472 [pulsar-io-32-30] WARN org.apache.pulsar.broker.service.ServerCnx - [/ip2:50384][persistent://test/test/test-partition-0][test_304_pulsar] Failed to create consumer: consumerId=43, Failed to load topic within timeout 17:53:05.592 [pulsar-io-32-30] INFO org.apache.pulsar.broker.service.ServerCnx - [[id: 0xce950df8, L:/ip1:6651 - R:/ip2:50384]] Subscribing on topic persistent://test/test/test-partition-0 / test_304_pulsar. consumerId: 43 17:53:05.592 [pulsar-io-32-30] WARN org.apache.pulsar.broker.service.ServerCnx - [/ip2:50384][persistent://test/test/test-partition-0][test_304_pulsar] Failed to create consumer: consumerId=43, Failed to load topic within timeout ``` -- 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: commits-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org