You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Andrés de la Peña (JIRA)" <ji...@apache.org> on 2014/05/28 16:07:01 UTC
[jira] [Created] (CASSANDRA-7313) SecondaryIndex not deleting
column definition
Andrés de la Peña created CASSANDRA-7313:
--------------------------------------------
Summary: SecondaryIndex not deleting column definition
Key: CASSANDRA-7313
URL: https://issues.apache.org/jira/browse/CASSANDRA-7313
Project: Cassandra
Issue Type: Bug
Components: Core
Reporter: Andrés de la Peña
Priority: Minor
Attachments: dSecondaryIndex-removeColumnDef.diff.txt
The method _SecondaryIndex#removeColumnDef_ does not delete the requested column definition. I think this may be due to the iterator's remove method:
{code:java}
void removeColumnDef(ByteBuffer name)
{
Iterator<ColumnDefinition> it = columnDefs.iterator();
while (it.hasNext())
{
if (it.next().name.bytes.equals(name))
it.remove();
}
}
{code}
For me it has been problematic when deleting a per row index in a column family and then creating a new one.
I attach a patch that may solve the problem.
--
This message was sent by Atlassian JIRA
(v6.2#6252)