You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/03/24 08:52:25 UTC

[jira] [Commented] (STORM-1655) Flux doesn't set return code to non-zero when there's any exception while deploying topology to remote cluster

    [ https://issues.apache.org/jira/browse/STORM-1655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15209926#comment-15209926 ] 

ASF GitHub Bot commented on STORM-1655:
---------------------------------------

GitHub user HeartSaVioR opened a pull request:

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

    STORM-1655 Flux doesn't set return code to non-zero when there's any exception while deploying topology to remote cluster

    * Modify Flux.runCli() to not catching exceptions so that exception can be propagated to main()
    
    JVM sets exit code to 1 when exception is propagated to main() and even main() doesn't catch it.
    
    ```
    ...
    606  [main] INFO  o.a.s.f.Flux - Running remotely...
    606  [main] INFO  o.a.s.f.Flux - Deploying topology in an ACTIVE state...
    619  [main] INFO  o.a.s.StormSubmitter - Generated ZooKeeper secret payload for MD5-digest: -5653047561138062924:-4997865894002296638
    669  [main] INFO  o.a.s.s.a.AuthUtils - Got AutoCreds []
    Exception in thread "main" java.lang.RuntimeException: Topology with name `yaml-topology` already exists on cluster
    	at org.apache.storm.StormSubmitter.submitTopologyAs(StormSubmitter.java:230)
    	at org.apache.storm.StormSubmitter.submitTopology(StormSubmitter.java:288)
    	at org.apache.storm.flux.Flux.runCli(Flux.java:171)
    	at org.apache.storm.flux.Flux.main(Flux.java:98)
     > echo $?
    1
    ```

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

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

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

    https://github.com/apache/storm/pull/1253.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 #1253
    
----
commit ba2385882e705ebf5c33f5a03b67dc3b14781460
Author: Jungtaek Lim <ka...@gmail.com>
Date:   2016-03-24T07:45:24Z

    STORM-1655 Flux doesn't set return code to non-zero when there's any exception while deploying topology to remote cluster
    
    * Modify Flux.runCli() to not catching exceptions so that exception can be propagated to main()

----


> Flux doesn't set return code to non-zero when there's any exception while deploying topology to remote cluster
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: STORM-1655
>                 URL: https://issues.apache.org/jira/browse/STORM-1655
>             Project: Apache Storm
>          Issue Type: Bug
>          Components: Flux
>    Affects Versions: 1.0.0, 2.0.0
>            Reporter: Jungtaek Lim
>            Assignee: Jungtaek Lim
>            Priority: Minor
>
> Flux.runCli() swallows any Exceptions when deploying topology remotely, while StormSubmitter.submitTopology() can throw exceptions.
> (AlreadyAliveException, InvalidTopologyException, AuthorizationException, and so on)
> It just prints warning log, and return code is 0, not non-zero.
> You can easily reproduce via deploying same topology twice with Flux.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)