cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua McKenzie (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-7335) GossipingPropertyFileSnitchTest fails on Windows
Date Wed, 04 Jun 2014 20:11:01 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-7335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Joshua McKenzie updated CASSANDRA-7335:
---------------------------------------

    Attachment: 7335_v1.txt

getResource() prepends a / on a file name - unit test is failing on Windows due to this. 
Switching to a File.getAbsolutePath() call works on both *nix and Windows.

> GossipingPropertyFileSnitchTest fails on Windows
> ------------------------------------------------
>
>                 Key: CASSANDRA-7335
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7335
>             Project: Cassandra
>          Issue Type: Sub-task
>            Reporter: Joshua McKenzie
>            Assignee: Joshua McKenzie
>            Priority: Minor
>              Labels: Windows
>             Fix For: 3.0
>
>         Attachments: 7335_v1.txt
>
>
> {code:failure message}
>     [junit] Testcase: testAutoReloadConfig(org.apache.cassandra.locator.GossipingPropertyFileSnitchTest):
      Caused an ERROR
>     [junit] Illegal char <:> at index 2: /C:/vm-shared/src/cassandra/test/conf/cassandra-rackdc.properties
>     [junit] java.nio.file.InvalidPathException: Illegal char <:> at index 2: /C:/vm-shared/src/cassandra/test/conf/cassandra-rackdc.properties
>     [junit]     at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
>     [junit]     at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
>     [junit]     at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
>     [junit]     at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
>     [junit]     at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
>     [junit]     at java.nio.file.Paths.get(Paths.java:84)
>     [junit]     at org.apache.cassandra.locator.GossipingPropertyFileSnitchTest.testAutoReloadConfig(GossipingPropertyFileSnitchTest.java:40)
>     [junit]
>     [junit]
>     [junit] Test org.apache.cassandra.locator.GossipingPropertyFileSnitchTest FAILED
> {code}



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

Mime
View raw message