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 2014/07/11 19:24:04 UTC

[jira] [Commented] (STORM-239) `mvn test` fails on paths with spaces in them

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

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

GitHub user apetresc opened a pull request:

    https://github.com/apache/incubator-storm/pull/188

    [STORM-239] Allow supervisor to operate in paths with spaces in them

    Works around a bug in path-escaping for Resources, described here:
    http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4466485

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

    $ git pull https://github.com/apetresc/incubator-storm STORM-239

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

    https://github.com/apache/incubator-storm/pull/188.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 #188
    
----
commit ebfc0d3de05dbef0479c81ce4274360d1e3c483c
Author: Adrian Petrescu <ap...@gmail.com>
Date:   2014-07-11T17:18:30Z

    [STORM-239] Allow supervisor to operate in paths with spaces in them
    
    Works around a bug in path-escaping for Resources, described here:
    http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4466485

----


> `mvn test` fails on paths with spaces in them
> ---------------------------------------------
>
>                 Key: STORM-239
>                 URL: https://issues.apache.org/jira/browse/STORM-239
>             Project: Apache Storm (Incubating)
>          Issue Type: Bug
>         Environment: Linux
>            Reporter: Adrian Petrescu
>            Priority: Minor
>              Labels: build
>
> This is incredibly minor, but when running the unit tests from a path that has a space somewhere, you get a failure of the form:
> {code}
> 7378 [Thread-5] INFO  backtype.storm.daemon.supervisor - Copying resources at file:/var/lib/jenkins/jobs/Apache%20Storm/workspace/storm-core/target/test-classes/resources to /tmp/265ce1e8-8a68-475a-9d59-ccb599add284/supervisor/stormdist/test-1-0/resources
> 7383 [Thread-5] ERROR backtype.storm.event - Error when processing event
> java.io.FileNotFoundException: Source '/var/lib/jenkins/jobs/Apache%20Storm/workspace/storm-core/target/test-classes/resources' does not exist
> 	at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:866) ~[commons-io-1.4.jar:1.4]
> 	at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:770) ~[commons-io-1.4.jar:1.4]
> 	at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:745) ~[commons-io-1.4.jar:1.4]
> 	at backtype.storm.daemon.supervisor$fn__4995.invoke(supervisor.clj:493) ~[classes/:na]
> 	at clojure.lang.MultiFn.invoke(MultiFn.java:172) ~[clojure-1.4.0.jar:na]
> 	at backtype.storm.daemon.supervisor$mk_synchronize_supervisor$this__4902.invoke(supervisor.clj:325) ~[classes/:na]
> 	at backtype.storm.event$event_manager$fn__2530.invoke(event.clj:39) ~[classes/:na]
> 	at clojure.lang.AFn.run(AFn.java:24) ~[clojure-1.4.0.jar:na]
> 	at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25]
> 7405 [Thread-5] INFO  backtype.storm.util - Halting process: ("Error when processing an event")
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] Storm ............................................. SUCCESS [22.941s]
> [INFO] maven-shade-clojure-transformer ................... SUCCESS [23.513s]
> [INFO] Storm Core ........................................ FAILURE [2:54.488s]
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 3:52.857s
> [INFO] Finished at: Mon Feb 10 16:16:28 EST 2014
> [INFO] Final Memory: 29M/262M
> [INFO] ------------------------------------------------------------------------
> {code}
> This can be kind of annoying when (as in my example) a continuous integration system is running tests, since you often don't have full control of the path it chooses to check the source tree out at.



--
This message was sent by Atlassian JIRA
(v6.2#6252)