Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-7313

SecondaryIndex not deleting column definition

    XMLWordPrintableJSON

Details

    • Low

    Description

      The method SecondaryIndex#removeColumnDef does not delete the requested column definition. I think this may be due to the iterator's remove method:

      void removeColumnDef(ByteBuffer name)
          {
              Iterator<ColumnDefinition> it = columnDefs.iterator();
              while (it.hasNext())
              {
                  if (it.next().name.bytes.equals(name))
                      it.remove();
              }
          }
      

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adelapena Andres de la Peña
            Sam Tunnicliffe
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: