cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuki Morishita (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CASSANDRA-12177) sstabledump fails if sstable path includes dot
Date Thu, 11 Aug 2016 15:37:22 GMT

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

Yuki Morishita resolved CASSANDRA-12177.
----------------------------------------
       Resolution: Fixed
         Assignee: Yuki Morishita
    Fix Version/s: 3.0.9

Backported CASSANDRA-12002 to 3.0 as {{de86ab1bb6e4b71451348397e0cbb2a577cd92d4}}. (Only {{SSTableExport}}
part, and not {{SSTableMetadataViewer}}).

> sstabledump fails if sstable path includes dot
> ----------------------------------------------
>
>                 Key: CASSANDRA-12177
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12177
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>            Reporter: Keith Wansbrough
>            Assignee: Yuki Morishita
>             Fix For: 3.0.9
>
>
> If there is a dot in the file path passed to sstabledump, it fails with an error {{partitioner
org.apache.cassandra.dht.Murmur3Partitioner does not match system partitioner org.apache.cassandra.dht.LocalPartitioner.}}
> I can work around this by renaming the directory containing the file, but it seems like
a bug. I expected the directory name to be irrelevant.
> Example (assumes you have a keyspace test containing a table called sport, but should
repro with any keyspace/table):
> {code}
> $ cp -a /var/lib/cassandra/data/test/sport-ebe76350474e11e6879fc5e30fbb0e96 testdir
> $ sstabledump testdir/mb-1-big-Data.db
> [
>   {
>     "partition" : {
>       "key" : [ "2" ],
>       "position" : 0
>     },
>     "rows" : [
>       {
>         "type" : "row",
>         "position" : 18,
>         "liveness_info" : { "tstamp" : "2016-07-11T10:15:22.766107Z" },
>         "cells" : [
>           { "name" : "score", "value" : "Golf" },
>           { "name" : "sport_type", "value" : "5" }
>         ]
>       }
>     ]
>   }
> ]
> $ cp -a /var/lib/cassandra/data/test/sport-ebe76350474e11e6879fc5e30fbb0e96 test.dir
> $ sstabledump test.dir/mb-1-big-Data.db
> ERROR 15:02:52 Cannot open /home/centos/test.dir/mb-1-big; partitioner org.apache.cassandra.dht.Murmur3Partitioner
does not match system partitioner org.apache.cassandra.dht.LocalPartitioner.  Note that the
default partitioner starting with Cassandra 1.2 is Murmur3Partitioner, so you will need to
edit that to match your old partitioner if upgrading.
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message