apache / apache/cassandra-ccm

Node.get_sstable() glob incorrect for C* 2.0

Open
#284 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.2k
Forks
309
PR merge metrics
No merged PRs in 30d

Description

`ccmlib.Node.get_sstable` searches for data directories with [this glob](https://github.com/pcmanus/ccm/blob/master/ccmlib/node.py#L851). As shown [here](https://github.com/pcmanus/ccm/blob/master/ccmlib/node.py#L843), the glob for the table-specific directory is `{tablename}-*`. e.g., if the table is called `cf`, it expects directories matching `cf-*`.

However, here's a data directory I found running a test on C\* 2.0:

```
$ pwd
/tmp/dtest-d6Etl2/test/node1/data/ks/cf
$ ls
ks-cf-jb-1-CompressionInfo.db ks-cf-jb-1-Data.db ks-cf-jb-1-Filter.db ks-cf-jb-1-Index.db ks-cf-jb-1-Statistics.db ks-cf-jb-1-Summary.db ks-cf-jb-1-TOC.txt
```

As shown above, the actual folder is named `cf`, which isn't matched by `cf-*`.

I'd send a PR, but I don't know how these folders are laid out in the general case. Should this match against just the table name in 2.0?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.