cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam Tunnicliffe (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-7742) Mutated ColumnFamily is not available to per-row indexes during update
Date Mon, 11 Aug 2014 14:05:12 GMT
Sam Tunnicliffe created CASSANDRA-7742:
------------------------------------------

             Summary: Mutated ColumnFamily is not available to per-row indexes during update
                 Key: CASSANDRA-7742
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7742
             Project: Cassandra
          Issue Type: Bug
            Reporter: Sam Tunnicliffe
            Assignee: Sam Tunnicliffe


PerRowSecondaryIndex implementations are updated when SecondaryIndexManager.Updater.updateRowLevelIndexes
is called from AtomicBTreeColumns.addAllWithSizeDelta. The StandardUpdater implementation
does this by passing the key and cf from the incoming Mutation to the PRSI.index() method.
However, the StandardUpdater instance created in Keyspace.apply() does not wrap the Mutation's
cf as it is obtained using the wrong factory method. This results in the cf passed to the
PRSI always being null. 

This isn't caught by PerRowSecondaryIndexTest because the stub index implementation there
only verifies that the latest version of the cf can be obtained by the index reading from
the base cf. 

Attaching a trivial patch to obtain an Updater which does wrap the mutated cf and also fix
the test so it verifies both of the actual arguments passed to PRSI.index



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message