[
https://issues.apache.org/jira/browse/CASSANDRA-10587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yuki Morishita updated CASSANDRA-10587:
---------------------------------------
Status: Patch Available (was: In Progress)
Sorry this took time.
I ended up fixing {{Descriptor}} object to always have canonical path as its
{{directory}}.
This way we don't need to think about given {{directory}} is relative or
absolute.
In fact, right now {{Desctiptor}} (and corresponding {{SSTable}}) is not
considered equal between {{Descriptor}}'s {{directory}} being relative and
absolute. (Added simple unit test to {{DescriptorTest}}).
||branch||testall||dtest||
|[10587-2.2|https://github.com/yukim/cassandra/tree/10587-2.2]|[testall|http://cassci.datastax.com/view/Dev/view/yukim/job/yukim-10587-2.2-testall/lastCompletedBuild/testReport/]|[dtest|http://cassci.datastax.com/view/Dev/view/yukim/job/yukim-10587-2.2-dtest/lastCompletedBuild/testReport/]|
|[10587-3.0|https://github.com/yukim/cassandra/tree/10587-3.0]|[testall|http://cassci.datastax.com/view/Dev/view/yukim/job/yukim-10587-3.0-testall/lastCompletedBuild/testReport/]|[dtest|http://cassci.datastax.com/view/Dev/view/yukim/job/yukim-10587-3.0-dtest/lastCompletedBuild/testReport/]|
|[10587-3.5|https://github.com/yukim/cassandra/tree/10587-3.5]|[testall|http://cassci.datastax.com/view/Dev/view/yukim/job/yukim-10587-3.5-testall/lastCompletedBuild/testReport/]|[dtest|http://cassci.datastax.com/view/Dev/view/yukim/job/yukim-10587-3.5-dtest/lastCompletedBuild/testReport/]|
|[10587-trunk|https://github.com/yukim/cassandra/tree/10587-trunk]|[testall|http://cassci.datastax.com/view/Dev/view/yukim/job/yukim-10587-trunk-testall/lastCompletedBuild/testReport/]|[dtest|http://cassci.datastax.com/view/Dev/view/yukim/job/yukim-10587-trunk-dtest/lastCompletedBuild/testReport/]|
For 3.0 and up, I needed to fix some unit test to work.
> sstablemetadata NPE on cassandra 2.2
> ------------------------------------
>
> Key: CASSANDRA-10587
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10587
> Project: Cassandra
> Issue Type: Bug
> Components: Tools
> Reporter: Tiago Batista
> Assignee: Yuki Morishita
> Priority: Minor
> Fix For: 2.2.x, 3.x
>
>
> I have recently upgraded my cassandra cluster to 2.2, currently running
> 2.2.3. After running the first repair, cassandra renames the sstables to the
> new naming schema that does not contain the keyspace name.
> This causes sstablemetadata to fail with the following stack trace:
> {noformat}
> Exception in thread "main" java.lang.NullPointerException
> at
> org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:275)
> at
> org.apache.cassandra.io.sstable.Descriptor.fromFilename(Descriptor.java:172)
> at
> org.apache.cassandra.tools.SSTableMetadataViewer.main(SSTableMetadataViewer.java:52)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)