You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Radim Kolar (JIRA)" <ji...@apache.org> on 2011/07/12 13:08:00 UTC

[jira] [Created] (CASSANDRA-2887) decommision fails if pathseparators are different

decommision fails if pathseparators are different
-------------------------------------------------

                 Key: CASSANDRA-2887
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2887
             Project: Cassandra
          Issue Type: Bug
          Components: Core
    Affects Versions: 0.8.1
         Environment: FreeBSD 8 vs Windows XP
            Reporter: Radim Kolar


I have 2 nodes in cluster. One is running on Windows XP and second is running on FreeBSD 8.2. If i try to decommission freebsd note windows node throws and exception during receiving streamed data:

java.lang.AssertionError: Filename must include parent directory.
        at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.ja
va:122)
        at org.apache.cassandra.streaming.PendingFile$PendingFileSerializer.dese
rialize(PendingFile.java:130)
        at org.apache.cassandra.streaming.StreamHeader$StreamHeaderSerializer.de
serialize(StreamHeader.java:90)
        at org.apache.cassandra.streaming.StreamHeader$StreamHeaderSerializer.de
serialize(StreamHeader.java:72)
        at org.apache.cassandra.net.IncomingTcpConnection.run(IncomingTcpConnect
ion.java:95)

this problem was discussed here http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/0-7-problem-on-cygwin-td5679932.html
with patch for cassandra 0.7 included


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CASSANDRA-2887) decommision fails if pathseparators are different

Posted by "Radim Kolar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-2887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065736#comment-13065736 ] 

Radim Kolar commented on CASSANDRA-2887:
----------------------------------------

If mixed clusters are not supported, they should be detected at node join time to prevent possible data loss on node decommission.

If this is only known problem with mixed clusters, it should be fixed because it is pretty trivial to fix - before filename processing during receiving streamed data just convert path separators to forward slashes.

> decommision fails if pathseparators are different
> -------------------------------------------------
>
>                 Key: CASSANDRA-2887
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2887
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.8.1
>         Environment: FreeBSD 8 vs Windows XP
>            Reporter: Radim Kolar
>
> I have 2 nodes in cluster. One is running on Windows XP and second is running on FreeBSD 8.2. If i try to decommission freebsd note windows node throws and exception during receiving streamed data:
> java.lang.AssertionError: Filename must include parent directory.
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.ja
> va:122)
>         at org.apache.cassandra.streaming.PendingFile$PendingFileSerializer.dese
> rialize(PendingFile.java:130)
>         at org.apache.cassandra.streaming.StreamHeader$StreamHeaderSerializer.de
> serialize(StreamHeader.java:90)
>         at org.apache.cassandra.streaming.StreamHeader$StreamHeaderSerializer.de
> serialize(StreamHeader.java:72)
>         at org.apache.cassandra.net.IncomingTcpConnection.run(IncomingTcpConnect
> ion.java:95)
> this problem was discussed here http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/0-7-problem-on-cygwin-td5679932.html
> with patch for cassandra 0.7 included

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CASSANDRA-2887) decommision fails if pathseparators are different

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-2887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis resolved CASSANDRA-2887.
---------------------------------------

    Resolution: Invalid

Mixed windows/unix clusters are not supported for this reason.  (Best practice is to have homogenous clusters anyway, to reduce the surface for environment errors.)

> decommision fails if pathseparators are different
> -------------------------------------------------
>
>                 Key: CASSANDRA-2887
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2887
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.8.1
>         Environment: FreeBSD 8 vs Windows XP
>            Reporter: Radim Kolar
>
> I have 2 nodes in cluster. One is running on Windows XP and second is running on FreeBSD 8.2. If i try to decommission freebsd note windows node throws and exception during receiving streamed data:
> java.lang.AssertionError: Filename must include parent directory.
>         at org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.ja
> va:122)
>         at org.apache.cassandra.streaming.PendingFile$PendingFileSerializer.dese
> rialize(PendingFile.java:130)
>         at org.apache.cassandra.streaming.StreamHeader$StreamHeaderSerializer.de
> serialize(StreamHeader.java:90)
>         at org.apache.cassandra.streaming.StreamHeader$StreamHeaderSerializer.de
> serialize(StreamHeader.java:72)
>         at org.apache.cassandra.net.IncomingTcpConnection.run(IncomingTcpConnect
> ion.java:95)
> this problem was discussed here http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/0-7-problem-on-cygwin-td5679932.html
> with patch for cassandra 0.7 included

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira