Skip to content

Conversation

@mproch
Copy link
Contributor

@mproch mproch commented Feb 18, 2016

Use ConfigUtils.workerArtifactsRoot to determine correct path

*/
Path path = Paths.get(logDir, "workers-artifacts", stormId, Integer.toString(port), "events.log");
Path path = Paths.get(workersArtifactRoot, "events.log");
if (!path.isAbsolute()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ConfigUtils appears to take care of the relative path, so this check could be removed.

@arunmahadevan
Copy link
Contributor

Can you update the PR title ?

Theres a PR #1109 for the same issue but it does not make use of the ConfigUtils since it had to be merged to 1.x as well. Since this PR is a better fix for 2.0, I will close #1109 and raise that against 1.x-branch.

+1 to merge against master (not 1.x-branch) once review comment is addressed.

@mproch mproch changed the title closes STORM-1545 closes STORM-1545 and STORM-1552 Feb 21, 2016
@mproch
Copy link
Contributor Author

mproch commented Feb 21, 2016

I removed relative path handling and updated the title - hope this is what you meant?

@arunmahadevan
Copy link
Contributor

When the unit tests are run it creates log files under /logs. It should ideally be under system tmp directory.

Maybe unrelated, but when an example topology is submitted worker crashes with the below error,

2016-02-22 10:56:51.085 o.a.s.d.worker [ERROR] Error on initialization of server mk-worker java.lang.ClassCastException: java.lang.String cannot be cast to java.io.File at org.apache.storm.daemon.worker$fn__6265$exec_fn__1730__auto____6266.invoke(worker.clj:622) ~[storm-core-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT] at clojure.lang.AFn.applyToHelper(AFn.java:178) ~[clojure-1.7.0.jar:?] at clojure.lang.AFn.applyTo(AFn.java:144) ~[clojure-1.7.0.jar:?] at clojure.core$apply.invoke(core.clj:630) ~[clojure-1.7.0.jar:?] at org.apache.storm.daemon.worker$fn__6265$mk_worker__6362.doInvoke(worker.clj:613) [storm-core-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT] at clojure.lang.RestFn.invoke(RestFn.java:512) [clojure-1.7.0.jar:?] at org.apache.storm.daemon.worker$_main.invoke(worker.clj:810) [storm-core-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT] at clojure.lang.AFn.applyToHelper(AFn.java:165) [clojure-1.7.0.jar:?] at clojure.lang.AFn.applyTo(AFn.java:144) [clojure-1.7.0.jar:?] at org.apache.storm.daemon.worker.main(Unknown Source) [storm-core-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]

@satishd
Copy link
Member

satishd commented Feb 22, 2016

https://issues.apache.org/jira/browse/STORM-1566 is raised for the above issue.

@abhishekagarwal87
Copy link
Contributor

Thanks @mproch Looks good to me (NB) for merge with master.

@HeartSaVioR
Copy link
Contributor

+1

@asfgit asfgit merged commit 6d43f36 into apache:master Feb 26, 2016
@HeartSaVioR
Copy link
Contributor

@mproch
Thanks for the work! I merged this into master.

I'd like to also set assignee from JIRA issue to you but I couldn't find your name in Apache JIRA.
If you have your account in JIRA, please do the followings,

Please let me know if you're not interested to do the things. I'll just assign assignee as reporter and resolve issue.

@mproch
Copy link
Contributor Author

mproch commented Feb 26, 2016

@HeartSaVioR
thanks, I resolved jira issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants