Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
ubuntu, cassandra 3.0.3
-
Normal
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.