You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by HeartSaVioR <gi...@git.apache.org> on 2016/07/27 14:24:53 UTC

[GitHub] storm pull request #1597: STORM-1285 port backtype.storm.command.get-errors ...

GitHub user HeartSaVioR opened a pull request:

    https://github.com/apache/storm/pull/1597

    STORM-1285 port backtype.storm.command.get-errors to java

    [STORM-1285](https://issues.apache.org/jira/browse/STORM-1285)
    
    Please look at the implementation of `getComponentErrors()` since it simplifies the origin logic.


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

    $ git pull https://github.com/HeartSaVioR/storm STORM-1285

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

    https://github.com/apache/storm/pull/1597.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 #1597
    
----
commit 729f1215e2650d02dc51733fcdb1ef190cdb01bc
Author: Jungtaek Lim <ka...@gmail.com>
Date:   2016-07-27T14:21:40Z

    STORM-1285 port backtype.storm.command.get-errors to java
    
    * port get-errors to GetErrors

----


---
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] storm issue #1597: STORM-1285 port backtype.storm.command.get-errors to java

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

    https://github.com/apache/storm/pull/1597
  
    Minor comment, +1 once addressed.


---
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] storm issue #1597: STORM-1285 port backtype.storm.command.get-errors to java

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

    https://github.com/apache/storm/pull/1597
  
    @abhishekagarwal87 @satishd 
    Thanks for the review. I addressed all of comments.


---
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] storm issue #1597: STORM-1285 port backtype.storm.command.get-errors to java

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

    https://github.com/apache/storm/pull/1597
  
    Minor comment. Looks good otherwise. 


---
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] storm pull request #1597: STORM-1285 port backtype.storm.command.get-errors ...

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

    https://github.com/apache/storm/pull/1597#discussion_r72604873
  
    --- Diff: storm-core/src/jvm/org/apache/storm/command/GetErrors.java ---
    @@ -0,0 +1,59 @@
    +package org.apache.storm.command;
    +
    +import org.apache.storm.generated.ErrorInfo;
    +import org.apache.storm.generated.GetInfoOptions;
    +import org.apache.storm.generated.Nimbus;
    +import org.apache.storm.generated.NumErrorsChoice;
    +import org.apache.storm.generated.TopologyInfo;
    +import org.apache.storm.utils.NimbusClient;
    +import org.apache.storm.utils.Utils;
    +import org.json.simple.JSONValue;
    +
    +import java.util.HashMap;
    +import java.util.List;
    +import java.util.Map;
    +
    +public class GetErrors {
    +    public static void main(String[] args) throws Exception {
    +        final String name = args[0];
    --- End diff --
    
    It would be nice to have a check on args length here and throw "Topology name not passed" exception in case args is empty. 


---
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] storm pull request #1597: STORM-1285 port backtype.storm.command.get-errors ...

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

    https://github.com/apache/storm/pull/1597#discussion_r72898640
  
    --- Diff: storm-core/src/jvm/org/apache/storm/command/GetErrors.java ---
    @@ -0,0 +1,80 @@
    +/**
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + * http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +package org.apache.storm.command;
    +
    +import org.apache.storm.generated.ErrorInfo;
    +import org.apache.storm.generated.GetInfoOptions;
    +import org.apache.storm.generated.Nimbus;
    +import org.apache.storm.generated.NumErrorsChoice;
    +import org.apache.storm.generated.TopologyInfo;
    +import org.apache.storm.utils.NimbusClient;
    +import org.apache.storm.utils.Utils;
    +import org.json.simple.JSONValue;
    +
    +import java.util.HashMap;
    +import java.util.List;
    +import java.util.Map;
    +
    +public class GetErrors {
    +    public static void main(String[] args) throws Exception {
    +        if (args.length == 0) {
    +            throw new IllegalArgumentException("You should provide topology name.");
    --- End diff --
    
    Yes it seems better. I'll address it.


---
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] storm issue #1597: STORM-1285 port backtype.storm.command.get-errors to java

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

    https://github.com/apache/storm/pull/1597
  
    Thanks for reviewing. I address your comments.


---
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] storm pull request #1597: STORM-1285 port backtype.storm.command.get-errors ...

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

    https://github.com/apache/storm/pull/1597#discussion_r72609450
  
    --- Diff: storm-core/src/jvm/org/apache/storm/command/GetErrors.java ---
    @@ -0,0 +1,59 @@
    +package org.apache.storm.command;
    +
    +import org.apache.storm.generated.ErrorInfo;
    +import org.apache.storm.generated.GetInfoOptions;
    +import org.apache.storm.generated.Nimbus;
    +import org.apache.storm.generated.NumErrorsChoice;
    +import org.apache.storm.generated.TopologyInfo;
    +import org.apache.storm.utils.NimbusClient;
    +import org.apache.storm.utils.Utils;
    +import org.json.simple.JSONValue;
    +
    +import java.util.HashMap;
    +import java.util.List;
    +import java.util.Map;
    +
    +public class GetErrors {
    +    public static void main(String[] args) throws Exception {
    +        final String name = args[0];
    --- End diff --
    
    That would be great. Will address.


---
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] storm pull request #1597: STORM-1285 port backtype.storm.command.get-errors ...

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

    https://github.com/apache/storm/pull/1597


---
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] storm pull request #1597: STORM-1285 port backtype.storm.command.get-errors ...

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

    https://github.com/apache/storm/pull/1597#discussion_r72605374
  
    --- Diff: storm-core/src/jvm/org/apache/storm/command/GetErrors.java ---
    @@ -0,0 +1,59 @@
    +package org.apache.storm.command;
    +
    +import org.apache.storm.generated.ErrorInfo;
    +import org.apache.storm.generated.GetInfoOptions;
    +import org.apache.storm.generated.Nimbus;
    +import org.apache.storm.generated.NumErrorsChoice;
    +import org.apache.storm.generated.TopologyInfo;
    +import org.apache.storm.utils.NimbusClient;
    +import org.apache.storm.utils.Utils;
    +import org.json.simple.JSONValue;
    +
    +import java.util.HashMap;
    +import java.util.List;
    +import java.util.Map;
    +
    +public class GetErrors {
    +    public static void main(String[] args) throws Exception {
    +        final String name = args[0];
    --- End diff --
    
    Missed it earlier. This class doesn't have licence headers. Build is failing because of that. 


---
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] storm issue #1597: STORM-1285 port backtype.storm.command.get-errors to java

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

    https://github.com/apache/storm/pull/1597
  
    +1 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] storm issue #1597: STORM-1285 port backtype.storm.command.get-errors to java

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

    https://github.com/apache/storm/pull/1597
  
    +1. Build failure is in storm-hive, unrelated to this change. 


---
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] storm pull request #1597: STORM-1285 port backtype.storm.command.get-errors ...

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

    https://github.com/apache/storm/pull/1597#discussion_r72672661
  
    --- Diff: storm-core/src/jvm/org/apache/storm/command/GetErrors.java ---
    @@ -0,0 +1,80 @@
    +/**
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + * http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +package org.apache.storm.command;
    +
    +import org.apache.storm.generated.ErrorInfo;
    +import org.apache.storm.generated.GetInfoOptions;
    +import org.apache.storm.generated.Nimbus;
    +import org.apache.storm.generated.NumErrorsChoice;
    +import org.apache.storm.generated.TopologyInfo;
    +import org.apache.storm.utils.NimbusClient;
    +import org.apache.storm.utils.Utils;
    +import org.json.simple.JSONValue;
    +
    +import java.util.HashMap;
    +import java.util.List;
    +import java.util.Map;
    +
    +public class GetErrors {
    +    public static void main(String[] args) throws Exception {
    +        if (args.length == 0) {
    +            throw new IllegalArgumentException("You should provide topology name.");
    --- End diff --
    
    Can we have a better error message? It can be something like `Topology name must be provided.`


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