You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by Jaskey <gi...@git.apache.org> on 2017/05/17 12:10:12 UTC

[GitHub] incubator-rocketmq pull request #105: [ROCKETMQ-200]-Cluster name is always ...

GitHub user Jaskey opened a pull request:

    https://github.com/apache/incubator-rocketmq/pull/105

    [ROCKETMQ-200]-Cluster name is always missing when fetch ClusterInfo from name server

    https://issues.apache.org/jira/browse/ROCKETMQ-200
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Jaskey/incubator-rocketmq ROCKETMQ-200-Cluster-missing

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-rocketmq/pull/105.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #105
    
----
commit c52edde359f170530f77a36d2f0c6df50f2de1a9
Author: Jaskey <li...@gmail.com>
Date:   2017-05-17T12:06:32Z

    Bug fix : Cluster name is always missing when fetch ClusterInfo from name server

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-rocketmq issue #105: [ROCKETMQ-200]-Cluster name is always missing...

Posted by dongeforever <gi...@git.apache.org>.
Github user dongeforever commented on the issue:

    https://github.com/apache/incubator-rocketmq/pull/105
  
    LGTM @zhouxinyu @vongosling 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-rocketmq issue #105: [ROCKETMQ-200]-Cluster name is always missing...

Posted by dongeforever <gi...@git.apache.org>.
Github user dongeforever commented on the issue:

    https://github.com/apache/incubator-rocketmq/pull/105
  
    @zhouxinyu @lizhanhui  it is time to merge this PR now, could you please have a double check?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-rocketmq pull request #105: [ROCKETMQ-200]-Cluster name is always ...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/incubator-rocketmq/pull/105


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-rocketmq pull request #105: [ROCKETMQ-200]-Cluster name is always ...

Posted by vongosling <gi...@git.apache.org>.
Github user vongosling commented on a diff in the pull request:

    https://github.com/apache/incubator-rocketmq/pull/105#discussion_r118621860
  
    --- Diff: common/src/main/java/org/apache/rocketmq/common/protocol/route/BrokerData.java ---
    @@ -15,9 +15,7 @@
      * limitations under the License.
      */
     
    -/**
    - * $Id: BrokerData.java 1835 2013-05-16 02:00:50Z vintagewang@apache.org $
    - */
    +
    --- End diff --
    
    excellent job


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-rocketmq issue #105: [ROCKETMQ-200]-Cluster name is always missing...

Posted by coveralls <gi...@git.apache.org>.
Github user coveralls commented on the issue:

    https://github.com/apache/incubator-rocketmq/pull/105
  
    
    [![Coverage Status](https://coveralls.io/builds/11563664/badge)](https://coveralls.io/builds/11563664)
    
    Coverage increased (+0.01%) to 37.899% when pulling **c52edde359f170530f77a36d2f0c6df50f2de1a9 on Jaskey:ROCKETMQ-200-Cluster-missing** into **1630f277b9c9f8e85c9bdb09a323d39e13e797e4 on apache:develop**.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-rocketmq pull request #105: [ROCKETMQ-200]-Cluster name is always ...

Posted by Jaskey <gi...@git.apache.org>.
Github user Jaskey commented on a diff in the pull request:

    https://github.com/apache/incubator-rocketmq/pull/105#discussion_r119535996
  
    --- Diff: namesrv/src/main/java/org/apache/rocketmq/namesrv/routeinfo/RouteInfoManager.java ---
    @@ -125,11 +125,7 @@ public RegisterBrokerResult registerBroker(
                     BrokerData brokerData = this.brokerAddrTable.get(brokerName);
                     if (null == brokerData) {
                         registerFirst = true;
    -                    brokerData = new BrokerData();
    -                    brokerData.setBrokerName(brokerName);
    -                    HashMap<Long, String> brokerAddrs = new HashMap<Long, String>();
    -                    brokerData.setBrokerAddrs(brokerAddrs);
    -
    +                    brokerData = new BrokerData(clusterName, brokerName, new HashMap<Long, String>());
    --- End diff --
    
    this cluster name is passed from the caller, it should be maintained by the caller.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-rocketmq issue #105: [ROCKETMQ-200]-Cluster name is always missing...

Posted by zhouxinyu <gi...@git.apache.org>.
Github user zhouxinyu commented on the issue:

    https://github.com/apache/incubator-rocketmq/pull/105
  
    +1, thanks @Jaskey 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-rocketmq pull request #105: [ROCKETMQ-200]-Cluster name is always ...

Posted by vongosling <gi...@git.apache.org>.
Github user vongosling commented on a diff in the pull request:

    https://github.com/apache/incubator-rocketmq/pull/105#discussion_r118622000
  
    --- Diff: namesrv/src/main/java/org/apache/rocketmq/namesrv/routeinfo/RouteInfoManager.java ---
    @@ -125,11 +125,7 @@ public RegisterBrokerResult registerBroker(
                     BrokerData brokerData = this.brokerAddrTable.get(brokerName);
                     if (null == brokerData) {
                         registerFirst = true;
    -                    brokerData = new BrokerData();
    -                    brokerData.setBrokerName(brokerName);
    -                    HashMap<Long, String> brokerAddrs = new HashMap<Long, String>();
    -                    brokerData.setBrokerAddrs(brokerAddrs);
    -
    +                    brokerData = new BrokerData(clusterName, brokerName, new HashMap<Long, String>());
    --- End diff --
    
    clusterName can be null here ?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---