You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by lizhanhui <gi...@git.apache.org> on 2017/02/09 14:49:25 UTC

[GitHub] incubator-rocketmq pull request #56: [ROCKETMQ-90] Include client IP in cons...

GitHub user lizhanhui opened a pull request:

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

    [ROCKETMQ-90] Include client IP in consumerProgress command output

    Include client IP per message queue of consumer progress command output

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

    $ git pull https://github.com/lizhanhui/incubator-rocketmq ROCKETMQ-90

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

    https://github.com/apache/incubator-rocketmq/pull/56.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 #56
    
----
commit 09eecde747a14c84efd98f6dd01b03670e94c341
Author: Zhanhui Li <li...@apache.org>
Date:   2017-02-09T14:42:22Z

    Include client IP per message queue of consumer progress command output

commit c3bfdb770d7f30b7fecf19ad38903f4e57699d59
Author: Zhanhui Li <li...@apache.org>
Date:   2017-02-09T14:46:17Z

    Format code

----


---
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 #56: [ROCKETMQ-90] Include client IP in consumerPro...

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

    https://github.com/apache/incubator-rocketmq/pull/56
  
    @shroman @vongosling  Any idea on this PR?


---
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 #56: [ROCKETMQ-90] Include client IP in consumerPro...

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

    https://github.com/apache/incubator-rocketmq/pull/56
  
    LGTM~


---
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 #56: [ROCKETMQ-90] Include client IP in consumerPro...

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

    https://github.com/apache/incubator-rocketmq/pull/56
  
    
    [![Coverage Status](https://coveralls.io/builds/10096072/badge)](https://coveralls.io/builds/10096072)
    
    Coverage increased (+0.3%) to 31.58% when pulling **2874c569fd02501ec6ae97d3ee9377303c30bcb8 on lizhanhui:ROCKETMQ-90** into **e6aaedcf4d23f95791c51fb510baf369c8b1f5c1 on apache:master**.



---
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 #56: [ROCKETMQ-90] Include client IP in consumerPro...

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

    https://github.com/apache/incubator-rocketmq/pull/56
  
    @lizhanhui why did we close this PR without merge?


---
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 #56: [ROCKETMQ-90] Include client IP in cons...

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

    https://github.com/apache/incubator-rocketmq/pull/56#discussion_r108617467
  
    --- Diff: tools/src/main/java/org/apache/rocketmq/tools/command/consumer/ConsumerProgressSubCommand.java ---
    @@ -94,12 +117,14 @@ public void execute(CommandLine commandLine, Options options, RPCHook rpcHook) {
                             lastTime = UtilAll.formatDate(new Date(offsetWrapper.getLastTimestamp()), UtilAll.YYYY_MM_DD_HH_MM_SS);
                         } catch (Exception e) {
                         }
    -                    System.out.printf("%-32s  %-32s  %-4d  %-20d  %-20d  %-20d  %s%n",
    +
    +                    System.out.printf("%-32s  %-32s  %-4d  %-20d  %-20d  %-20s %-20d  %s%n",
                             UtilAll.frontStringAtLeast(mq.getTopic(), 32),
                             UtilAll.frontStringAtLeast(mq.getBrokerName(), 32),
                             mq.getQueueId(),
                             offsetWrapper.getBrokerOffset(),
                             offsetWrapper.getConsumerOffset(),
    +                        messageQueueAllocationResult.containsKey(mq) ? messageQueueAllocationResult.get(mq) : "NA",
    --- End diff --
    
    Not that important here, but you can do the same with accessing `messageQueueAllocationResult` only once. `get()` and see if it is null.


---
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 #56: [ROCKETMQ-90] Include client IP in consumerPro...

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

    https://github.com/apache/incubator-rocketmq/pull/56
  
    
    [![Coverage Status](https://coveralls.io/builds/10077780/badge)](https://coveralls.io/builds/10077780)
    
    Coverage increased (+0.3%) to 31.623% when pulling **c3bfdb770d7f30b7fecf19ad38903f4e57699d59 on lizhanhui:ROCKETMQ-90** into **e6aaedcf4d23f95791c51fb510baf369c8b1f5c1 on apache:master**.



---
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 #56: [ROCKETMQ-90] Include client IP in consumerPro...

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

    https://github.com/apache/incubator-rocketmq/pull/56
  
    @lizhanhui +1


---
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 #56: [ROCKETMQ-90] Include client IP in consumerPro...

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

    https://github.com/apache/incubator-rocketmq/pull/56
  
    @zhouxinyu it's been merged.


---
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 #56: [ROCKETMQ-90] Include client IP in consumerPro...

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

    https://github.com/apache/incubator-rocketmq/pull/56
  
    @shroman Please re-check and  help merge this issue if it's all right.


---
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 #56: [ROCKETMQ-90] Include client IP in consumerPro...

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

    https://github.com/apache/incubator-rocketmq/pull/56
  
    
    [![Coverage Status](https://coveralls.io/builds/10824368/badge)](https://coveralls.io/builds/10824368)
    
    Coverage decreased (-0.2%) to 31.101% when pulling **cb8092a5cad021dad05497d9283dc0c5a3cef3bc on lizhanhui:ROCKETMQ-90** into **e6aaedcf4d23f95791c51fb510baf369c8b1f5c1 on apache:master**.



---
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 #56: [ROCKETMQ-90] Include client IP in cons...

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

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


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