Cassandra
  1. Cassandra
  2. CASSANDRA-2887

decommision fails if pathseparators are different

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Environment:

      FreeBSD 8 vs Windows XP

      Description

      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

        Activity

        Gavin made changes -
        Workflow patch-available, re-open possible [ 12752904 ] reopen-resolved, no closed status, patch-avail, testing [ 12758524 ]
        Gavin made changes -
        Workflow no-reopen-closed, patch-avail [ 12620092 ] patch-available, re-open possible [ 12752904 ]
        Hide
        Radim Kolar added a comment -

        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.

        Show
        Radim Kolar added a comment - 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.
        Jonathan Ellis made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Invalid [ 6 ]
        Hide
        Jonathan Ellis added a comment -

        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.)

        Show
        Jonathan Ellis added a comment - 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.)
        Radim Kolar created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Radim Kolar
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development