STORM-2660 The Nimbus storm-local directory is relative to the workin…#2303
STORM-2660 The Nimbus storm-local directory is relative to the workin…#2303asfgit merged 1 commit intoapache:masterfrom
Conversation
|
Thanks for taking a look at this. The fix looks good, but I think this is an issue elsewhere too. At least this path is making the same mistake Looking at uses of STORM_LOCAL_DIR, I'm wondering if these uses are also suspicious:
|
|
Nice finding @srdo . Addressed other places as well. |
srdo
left a comment
There was a problem hiding this comment.
I think it could be nice to add to the Config javadoc for the blobstore and storm-local dirs that relative paths will be interpreted as relative to storm.home, unless that's already mentioned somewhere.
| String stormHome = System.getProperty("storm.home"); | ||
| String blobStoreDir = (String) conf.get(Config.BLOBSTORE_DIR); | ||
| if (blobStoreDir == null) { | ||
| return null; |
There was a problem hiding this comment.
I think we can make this a little nicer by having this return absoluteStormLocalDir. There's less risk of us accidentally forgetting to null check the result if this ever gets used elsewhere.
|
+1, verified that |
c21e2b8 to
6981c5b
Compare
|
@srdo Also addressed review comments and squashed commits into one. |
|
+1, thanks :) |
…g directory of the shell executing "storm nimbus" * Let Nimbus uses same storm-local directory as Supervisor which is known to be valid * also addresses other places as well (review comment from @srdo)
6981c5b to
96a0866
Compare
…g directory of the shell executing "storm nimbus"