[ 
https://issues.apache.org/jira/browse/CASSANDRA-794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833853#action_12833853
 ] 

Jonathan Ellis commented on CASSANDRA-794:
------------------------------------------

ruslan is mixing windows and unix machines in the same cluster.  I'm not sure 
we can support that sanely.

> path handling is unix-dependent
> -------------------------------
>
>                 Key: CASSANDRA-794
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-794
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Jonathan Ellis
>            Priority: Minor
>             Fix For: 0.6
>
>
> ruslan usifov reports on -user:
> i have problem with StreamInitiateVerbHandler, the problem in 
> PendingFile.getTargetFile, namely difference in slashes on win and unix, so i 
> change PendingFile.java like this:
>     public PendingFile(String targetFile, long expectedBytes, String table)
>     {
>         targetFile_ = targetFile.replaceAll("(?:\\\\|/)+", "/");
>         expectedBytes_ = expectedBytes;
>         table_ = table;
>         ptr_ = 0;
>     }
>     public void setTargetFile(String file)
>     {
>         targetFile_ = file.replaceAll("(?:\\\\|/)+", "/");;
>     }
> What we really want though is something that uses the File apis to be 
> os-independent.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to