You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by "Chuck Burgess (JIRA)" <ji...@apache.org> on 2015/11/09 23:07:11 UTC

[jira] [Created] (STORM-1193) supervisor-test error creating symlinks on windows

Chuck Burgess created STORM-1193:
------------------------------------

             Summary: supervisor-test error creating symlinks on windows
                 Key: STORM-1193
                 URL: https://issues.apache.org/jira/browse/STORM-1193
             Project: Apache Storm
          Issue Type: Bug
         Environment: Windows7
Java7
            Reporter: Chuck Burgess
            Priority: Minor


The test-worker-launch-command-run-as-user testcase errors rather than fails, due to what seems to be a privilege issue with creating a symlink.

{quote}
5701 \[main] INFO  b.s.d.supervisor - Creating symlinks for worker-id: fake-worker-id storm-id: fake-storm-id to its port artifacts directory

Uncaught exception, not in assertion.

expected: nil
actual: java.nio.file.FileSystemException: C:\path\to\Temp\storm-local8914443830909286033\workers\fake-worker-id\artifacts: A required privilege is not held by the client.

 at sun.nio.fs.WindowsException.translateToIOException (WindowsException.java:86)
    sun.nio.fs.WindowsException.rethrowAsIOException (WindowsException.java:97)
    sun.nio.fs.WindowsException.rethrowAsIOException (WindowsException.java:102)
    sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink (WindowsFileSystemProvider.java:577)
    java.nio.file.Files.createSymbolicLink (Files.java:994)
    backtype.storm.util$create_symlink_BANG_.invoke (util.clj:604)
    backtype.storm.daemon.supervisor$create_artifacts_link.invoke (supervisor.clj:811)
    backtype.storm.daemon.supervisor/fn (supervisor.clj:898)
    clojure.lang.MultiFn.invoke (MultiFn.java:251)
    backtype.storm.supervisor_test$fn__498$fn__501$fn__502$fn__503.invoke (supervisor_test.clj:472)
    clojure.core$with_redefs_fn.invoke (core.clj:7209)
    backtype.storm.supervisor_test$fn__498$fn__501$fn__502.invoke (supervisor_test.clj:462)
    backtype.storm.supervisor_test$fn__498$fn__501.invoke (supervisor_test.clj:462)
    backtype.storm.supervisor_test/fn (supervisor_test.clj:451)
{quote}

I don't know if the testcase itself should be catching the error and presenting it as a failed test, or if the original code should be catching it and reacting.

What's odd here is that if this is using my own user account and privileges, then it should work, because my account _does_ have permission to create symlinks.

Tested against master branch (c12e28c829)



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