You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tubemq.apache.org by "Guocheng Zhang (Jira)" <ji...@apache.org> on 2020/12/09 10:54:00 UTC

[jira] [Created] (TUBEMQ-446) Small bugs fix that do not affect the main body

Guocheng Zhang created TUBEMQ-446:
-------------------------------------

             Summary: Small bugs fix that do not affect the main body
                 Key: TUBEMQ-446
                 URL: https://issues.apache.org/jira/browse/TUBEMQ-446
             Project: Apache TubeMQ
          Issue Type: Bug
            Reporter: Guocheng Zhang
         Attachments: image-2020-12-09-18-53-02-498.png, image-2020-12-09-18-53-55-711.png

Found some small bugs
1. AddressUtils.getIPV4LocalAddress() should first check whether localIPAddress has been set, and use it directly under the premise that it has been set to reduce unnecessary get operations, locate: [https://github.com/apache/incubator-tubemq/blob/master/tubemq-core/src/main/java/org/apache/tubemq/corebase/utils/AddressUtils.java#L146]

!image-2020-12-09-18-53-02-498.png!


2. The fetchCount parameter in MessageConsumerExample may be negative, so the executorService object should not use fetchCount as the initial value, locate:[https://github.com/apache/incubator-tubemq/blob/master/tubemq-example/src/main/java/org/apache/tubemq/example/MessageConsumerExample.java#L99]

!image-2020-12-09-18-53-55-711.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)