Sylvain Lebresne created CASSANDRA-4365:
-------------------------------------------

             Summary: Use CF comparator to sort indexed columns in 
SecondaryIndexManager
                 Key: CASSANDRA-4365
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4365
             Project: Cassandra
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.1.1
            Reporter: Sylvain Lebresne
            Assignee: Sylvain Lebresne
            Priority: Trivial
             Fix For: 1.1.2
         Attachments: 4365.txt

SecondaryIndexManager is supposed to have it's internal map sorted according to 
the base CF comparator, but instead it sorts using the byte buffer natural 
ordering.

This order is carried along by the sorted set returned by getIndexedColumns(), 
which in turns end up in a NamesQueryFilter when reading indexed columns, so 
the order should really be the CF one.

I'll note that I don't think this is a bug because SSTableNamesIterator don't 
in fact rely on the actual ordering of the names. But it's worth fixing to 
avoid future problems.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to