cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Berenguer Blasi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-7787) 2i index indexing the cql3 row marker throws NPE
Date Mon, 18 Aug 2014 16:50:19 GMT

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

Berenguer Blasi updated CASSANDRA-7787:
---------------------------------------

    Description: 
If you have a secondary index implementation that 'indexes()' the cql3 row marker you get
a NPE in SecondaryIndexManager/deleteFromIndexes() as the call to getColumnDefinitionFromColumnName()
returns null which is not checked for.

This has been detected in the context of inserting PK only rows, where the row marker is expected
to be present. When 'indexes()' returned 'false', the row would mistakenly get deleted as
the row marker didn't go through.

If 'indexes()' returns 'true' the row marker goes through but you get a NPE.

  was:
If you have a secondary index implementation that 'indexes()' the cql3 row marker you get
a NPE in SecondaryIndexManager/deleteFromIndexes() as the call to getColumnDefinitionFromColumnName()
returns null which is not checked for.

This has been detected in the context of inserting PK only rows, where the row marker is expected
to be present. When 'indexes()' returned 'false', the row would mistakenly get deleted as
the row marker didn't go through.

Is 'indexes()' returns 'true' the row marker goes through but you get a NPE.


> 2i index indexing the cql3 row marker throws NPE
> ------------------------------------------------
>
>                 Key: CASSANDRA-7787
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7787
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Berenguer Blasi
>            Priority: Minor
>             Fix For: 2.0.10
>
>         Attachments: cassandra-2.0-7787.txt
>
>
> If you have a secondary index implementation that 'indexes()' the cql3 row marker you
get a NPE in SecondaryIndexManager/deleteFromIndexes() as the call to getColumnDefinitionFromColumnName()
returns null which is not checked for.
> This has been detected in the context of inserting PK only rows, where the row marker
is expected to be present. When 'indexes()' returned 'false', the row would mistakenly get
deleted as the row marker didn't go through.
> If 'indexes()' returns 'true' the row marker goes through but you get a NPE.



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

Mime
View raw message