[ 
https://issues.apache.org/jira/browse/CASSANDRA-8582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14271055#comment-14271055
 ] 

T Jake Luciani commented on CASSANDRA-8582:
-------------------------------------------

The difference is the tempDataDir needs to include the ks and cf sub 
directories:

{code}
    @Test
    public void testFromFileNameWithBIGFormat()
    {
        File dir = new File(tempDataDir.getAbsolutePath() + File.separator + 
ksname + File.separator + cfname);
        checkFromFilename(new Descriptor(dir, ksname, cfname, 1, 
Descriptor.Type.TEMP, SSTableFormat.Type.BIG), false);
    }
{code}

> Descriptor.fromFilename seems broken for BIG format
> ---------------------------------------------------
>
>                 Key: CASSANDRA-8582
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8582
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Benjamin Lerer
>            Assignee: T Jake Luciani
>
> The problem can be reproduced in {{DescriptorTest}} by adding the following 
> unit test:
> {code}
>     @Test
>     public void testFromFileNameWithBIGFormat()
>     {
>         checkFromFilename(new Descriptor(tempDataDir, ksname, cfname, 1, 
> Descriptor.Type.TEMP, SSTableFormat.Type.BIG), false);
>     }
> {code}



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

Reply via email to