You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by ashnazg <gi...@git.apache.org> on 2015/12/07 22:42:59 UTC

[GitHub] storm pull request: Use File.separator for OS independence in Blob...

GitHub user ashnazg opened a pull request:

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

    Use File.separator for OS independence in Blobstore LocalizerTest

    This clears up one incidental issue shown on STORM-1378, the one test failure due solely to "/" vs "\" in the path comparison.  This does _not_ solve the larger issue on STORM-1378.

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

    $ git pull https://github.com/ashnazg/storm fileSep

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

    https://github.com/apache/storm/pull/928.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 #928
    
----
commit 8e7a6f227cdaeb166f743ed931df8d2508f31de1
Author: Chuck Burgess <cb...@progressrail.com>
Date:   2015-12-07T21:39:57Z

    use File.separator for OS independence;

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm pull request: Use File.separator for OS independence in Blob...

Posted by revans2 <gi...@git.apache.org>.
Github user revans2 commented on the pull request:

    https://github.com/apache/storm/pull/928#issuecomment-163292661
  
    @ashnazg adding a new dep in this case is not that big of a deal, because it is only for a test.  Just be sure to mark the dep as a test dependency in maven if you do need to add a new one.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm pull request: STORM-1378: Use File.separator for OS independ...

Posted by ashnazg <gi...@git.apache.org>.
Github user ashnazg commented on the pull request:

    https://github.com/apache/storm/pull/928#issuecomment-163412824
  
    These last additions are the best that can be done.  The symlink issue can't be solved (see JIRA).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm pull request: STORM-1378: Use File.separator for OS independ...

Posted by revans2 <gi...@git.apache.org>.
Github user revans2 commented on the pull request:

    https://github.com/apache/storm/pull/928#issuecomment-163675116
  
    +1


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm pull request: Use File.separator for OS independence in Blob...

Posted by redsanket <gi...@git.apache.org>.
Github user redsanket commented on the pull request:

    https://github.com/apache/storm/pull/928#issuecomment-162696112
  
    +1 NB


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm pull request: Use File.separator for OS independence in Blob...

Posted by unsleepy22 <gi...@git.apache.org>.
Github user unsleepy22 commented on the pull request:

    https://github.com/apache/storm/pull/928#issuecomment-163266835
  
    @ashnazg use Joiner in guava (should be already in dependency) :)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm pull request: STORM-1378: Use File.separator for OS independ...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

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


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm pull request: Use File.separator for OS independence in Blob...

Posted by revans2 <gi...@git.apache.org>.
Github user revans2 commented on the pull request:

    https://github.com/apache/storm/pull/928#issuecomment-163267032
  
    @ashnazg http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/base/Joiner.html


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm pull request: Use File.separator for OS independence in Blob...

Posted by unsleepy22 <gi...@git.apache.org>.
Github user unsleepy22 commented on the pull request:

    https://github.com/apache/storm/pull/928#issuecomment-162933358
  
    I'd prefer to create a util method like `joinPath` which is like:
    ```
    public static String joinPath(String... pathList) {
        return Joiner.on(File.separator).join(pathList);
    }
    ```
    to avoid so many duplicate `File.separator`s.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm pull request: Use File.separator for OS independence in Blob...

Posted by ashnazg <gi...@git.apache.org>.
Github user ashnazg commented on the pull request:

    https://github.com/apache/storm/pull/928#issuecomment-163299110
  
    Ahhh... Eclipse gave me the wrong import (org.apache.storm.guava.base)...


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm pull request: Use File.separator for OS independence in Blob...

Posted by revans2 <gi...@git.apache.org>.
Github user revans2 commented on the pull request:

    https://github.com/apache/storm/pull/928#issuecomment-163045433
  
    The change looks god +1.  I agree with @unsleepy22 though and a joinPath would make the code more readable, but it is optional in my mind.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm pull request: Use File.separator for OS independence in Blob...

Posted by ashnazg <gi...@git.apache.org>.
Github user ashnazg commented on the pull request:

    https://github.com/apache/storm/pull/928#issuecomment-163265892
  
    Umm... is Joiner only available in Java8?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm pull request: Use File.separator for OS independence in Blob...

Posted by wuchong <gi...@git.apache.org>.
Github user wuchong commented on the pull request:

    https://github.com/apache/storm/pull/928#issuecomment-162734475
  
    +1 nice catch


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm pull request: Use File.separator for OS independence in Blob...

Posted by unsleepy22 <gi...@git.apache.org>.
Github user unsleepy22 commented on the pull request:

    https://github.com/apache/storm/pull/928#issuecomment-163318356
  
    looks good to me now~


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm pull request: Use File.separator for OS independence in Blob...

Posted by ashnazg <gi...@git.apache.org>.
Github user ashnazg commented on the pull request:

    https://github.com/apache/storm/pull/928#issuecomment-163269805
  
    Ok, let me doublecheck my build... the dep wasn't found, which is why I thought "surely I don't need to add a new dep for this" :)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---