You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jeremy Hanna (JIRA)" <ji...@apache.org> on 2019/06/13 18:29:08 UTC

[jira] [Updated] (CASSANDRA-11978) StreamReader fails to write sstable if CF directory is symlink

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

Jeremy Hanna updated CASSANDRA-11978:
-------------------------------------
    Complexity: Low Hanging Fruit

> StreamReader fails to write sstable if CF directory is symlink
> --------------------------------------------------------------
>
>                 Key: CASSANDRA-11978
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11978
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Legacy/Streaming and Messaging
>            Reporter: Michael Frisch
>            Assignee: Kirk True
>            Priority: Normal
>              Labels: lhf
>
> I'm using Cassandra v2.2.6.  If the CF is stored as a symlink in the keyspace directory on disk then StreamReader.createWriter fails because Descriptor.fromFilename is passed the actual path on disk instead of path with the symlink.
> Example:
> /path/to/data/dir/Keyspace/CFName -> /path/to/data/dir/AnotherDisk/CFName
> Descriptor.fromFilename is passed "/path/to/data/dir/AnotherDisk/CFName" instead of "/path/to/data/dir/Keyspace/CFName", then it concludes that the keyspace name is "AnotherDisk" which is erroneous. I've temporarily worked around this by using cfs.keyspace.getName() to get the keyspace name and cfs.name to get the CF name as those are correct.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org