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

SStableloader does not stream data if the Cassandra table was altered to drop some column

    XMLWordPrintableJSON

Details

    • Normal

    Description

      Sstabble loader stops working whenever the cassandra table is altered to drop some column.
      the following error shows:
      Error:

      Could not retrieve endpoint ranges:
      java.lang.IllegalArgumentException
      java.lang.RuntimeException: Could not retrieve endpoint ranges:
      at org.apache.cassandra.tools.BulkLoader$ExternalClient.init(BulkLoader.java:338)
      at org.apache.cassandra.io.sstable.SSTableLoader.stream(SSTableLoader.java:156)
      at org.apache.cassandra.tools.BulkLoader.main(BulkLoader.java:106)
      Caused by: java.lang.IllegalArgumentException
      at java.nio.Buffer.limit(Buffer.java:275)
      at org.apache.cassandra.utils.ByteBufferUtil.readBytes(ByteBufferUtil.java:543)
      at org.apache.cassandra.serializers.CollectionSerializer.readValue(CollectionSerializer.java:124)
      at org.apache.cassandra.serializers.MapSerializer.deserializeForNativeProtocol(MapSerializer.java:101)
      at org.apache.cassandra.serializers.MapSerializer.deserializeForNativeProtocol(MapSerializer.java:30)
      at org.apache.cassandra.serializers.CollectionSerializer.deserialize(CollectionSerializer.java:50)
      at org.apache.cassandra.db.marshal.AbstractType.compose(AbstractType.java:68)
      at org.apache.cassandra.cql3.UntypedResultSet$Row.getMap(UntypedResultSet.java:287)
      at org.apache.cassandra.config.CFMetaData.fromSchemaNoTriggers(CFMetaData.java:1833)
      at org.apache.cassandra.config.CFMetaData.fromThriftCqlRow(CFMetaData.java:1126)
      at org.apache.cassandra.tools.BulkLoader$ExternalClient.init(BulkLoader.java:330)
      ... 2 more

      The only solution is then to drop the table and create it again.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              root545 manuj singh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: