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

sstableloader fails with java.lang.IllegalArgumentException: flags is not a column defined in this metadata

    XMLWordPrintableJSON

Details

    Description

      When used on a cluster with materialized view sstableloader fails with:

      flags is not a column defined in this metadata
      java.lang.IllegalArgumentException: flags is not a column defined in this metadata
              at com.datastax.driver.core.ColumnDefinitions.getAllIdx(ColumnDefinitions.java:272)
              at com.datastax.driver.core.ColumnDefinitions.getFirstIdx(ColumnDefinitions.java:278)
              at com.datastax.driver.core.ArrayBackedRow.getIndexOf(ArrayBackedRow.java:83)
              at com.datastax.driver.core.AbstractGettableData.getSet(AbstractGettableData.java:217)
              at org.apache.cassandra.utils.NativeSSTableLoaderClient.createTableMetadata(NativeSSTableLoaderClient.java:172)
              at org.apache.cassandra.utils.NativeSSTableLoaderClient.fetchViews(NativeSSTableLoaderClient.java:157)
              at org.apache.cassandra.utils.NativeSSTableLoaderClient.init(NativeSSTableLoaderClient.java:93)
              at org.apache.cassandra.io.sstable.SSTableLoader.stream(SSTableLoader.java:159)
              at org.apache.cassandra.tools.BulkLoader.main(BulkLoader.java:103)
      

      This happens because there is no column `flags` in `system_schema.views`, but NativeSSTableLoaderClient want's to read it.

      Attachments

        Activity

          People

            rushman Sergey Kirillov
            rushman Sergey Kirillov
            Sergey Kirillov
            Yuki Morishita
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: