lizhiboo opened a new issue #3314:
URL: https://github.com/apache/rocketmq/issues/3314


   There are some hard code timeout in MQClientInstance mqClientApiImpl 
request, such as 3 * 1000 following
   ```java
       public boolean updateTopicRouteInfoFromNameServer(final String topic, 
boolean isDefault,
           DefaultMQProducer defaultMQProducer) {
           try {
               if (this.lockNamesrv.tryLock(LOCK_TIMEOUT_MILLIS, 
TimeUnit.MILLISECONDS)) {
                   try {
                       TopicRouteData topicRouteData;
                       if (isDefault && defaultMQProducer != null) {
                           topicRouteData = 
this.mQClientAPIImpl.getDefaultTopicRouteInfoFromNameServer(defaultMQProducer.getCreateTopicKey(),
                               3 * 1000);
                           if (topicRouteData != null) {
                               for (QueueData data : 
topicRouteData.getQueueDatas()) {
                                   int queueNums = 
Math.min(defaultMQProducer.getDefaultTopicQueueNums(), data.getReadQueueNums());
                                   data.setReadQueueNums(queueNums);
                                   data.setWriteQueueNums(queueNums);
                               }
                           }
   ```
   user cannot set this parameter outer.
   #3313 


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