[ https://issues.apache.org/jira/browse/CASSANDRA-10155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14708338#comment-14708338 ]
Robert Stupp commented on CASSANDRA-10155: ------------------------------------------ Right, cfName is different for base table and 2i. But the only parameter to {{AutoSavingCache#getCacheDataPath}}/{{getCacheCrcPath}} is cfId - so {{DatabaseDescriptor.getSerializedCachePath}} can only return the file name for the base table. I.e. a {{AutoSavingCache#loadSaved}} will access the same file for base table and 2i {{ColumnFamilyStore}}s. > 2i key cache load fails > ----------------------- > > Key: CASSANDRA-10155 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10155 > Project: Cassandra > Issue Type: Bug > Reporter: Robert Stupp > Fix For: 3.0.0 rc1 > > > CASSANDRA-9265 changed how key cache content is serialized to disk. It uses > {{UUID cfId}} to generate the file path for each {{ColumnFamilyStore}}. > Since {{cfId}} of a secondary index is the same as for the base table, the > key-cache files for 2i's and the base are the same. This will/may lead to > deserialization failures on restart for tables with at least one 2i. > /cc [~aweisberg] [~danchia] -- This message was sent by Atlassian JIRA (v6.3.4#6332)