this is not production data request. We are just performing testing of up gradation from dse 5.0.15 to 6.7.4 .
We are following below document for upgradation :
https://docs.datastax.com/en/upgrade/doc/upgrade/datastax_enterprise/upgdDSE50to67.html
We have performed all the given steps on the test server & upgraded dse from 5.0.15 to 6.7.4 .
Post upgradation when we are running nodetool upgradesstable command to upgrade sstable to current version we are getting error :
root@ubuntu:/home/ubuntu# nodetool upgradesstables test_keyspace error: Corrupt (negative) value length encountered -- StackTrace -- java.io.IOException: Corrupt (negative) value length encountered at org.apache.cassandra.utils.ByteBufferUtil.readWithVIntLength(ByteBufferUtil.java:372) at org.apache.cassandra.db.marshal.CollectionType$CollectionPathSerializer.deserialize(CollectionType.java:260) at org.apache.cassandra.db.rows.Cell$Serializer.deserialize(Cell.java:268) at org.apache.cassandra.db.rows.UnfilteredSerializer.readComplexColumn(UnfilteredSerializer.java:683) at org.apache.cassandra.db.rows.UnfilteredSerializer.deserializeRowBody(UnfilteredSerializer.java:620) at org.apache.cassandra.db.rows.UnfilteredSerializer.deserializeOne(UnfilteredSerializer.java:488) at org.apache.cassandra.db.rows.UnfilteredSerializer.deserialize(UnfilteredSerializer.java:444) at org.apache.cassandra.io.sstable.SSTableSimpleIterator$CurrentFormatIterator.computeNext(SSTableSimpleIterator.java:86) at org.apache.cassandra.io.sstable.SSTableSimpleIterator$CurrentFormatIterator.computeNext(SSTableSimpleIterator.java:62) at org.apache.cassandra.utils.AbstractIterator.hasNext(AbstractIterator.java:47) at org.apache.cassandra.io.sstable.SSTableIdentityIterator.hasNext(SSTableIdentityIterator.java:155) at org.apache.cassandra.db.rows.LazilyInitializedUnfilteredRowIterator.computeNext(LazilyInitializedUnfilteredRowIterator.java:101) at org.apache.cassandra.db.rows.LazilyInitializedUnfilteredRowIterator.computeNext(LazilyInitializedUnfilteredRowIterator.java:33) at org.apache.cassandra.utils.AbstractIterator.hasNext(AbstractIterator.java:47) at org.apache.cassandra.db.transform.BaseRows.hasNext(BaseRows.java:131) at org.apache.cassandra.db.transform.UnfilteredRows.isEmpty(UnfilteredRows.java:74) at org.apache.cassandra.db.partitions.PurgeFunction.applyToPartition(PurgeFunction.java:68) at org.apache.cassandra.db.partitions.PurgeFunction.applyToPartition(PurgeFunction.java:28)
We checked logs at the same time we get below in it:
ERROR [CompactionExecutor:3] 2020-07-08 13:06:01,659 CassandraDaemon.java:129 - Exception in thread Thread[CompactionExecutor:3,5,RMI Runtime] org.apache.cassandra.io.sstable.CorruptSSTableException: Corrupted: /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-20-big-Data.db at org.apache.cassandra.io.sstable.SSTableIdentityIterator.hasNext(SSTableIdentityIterator.java:167) at org.apache.cassandra.db.rows.LazilyInitializedUnfilteredRowIterator.computeNext(LazilyInitializedUnfilteredRowIterator.java:101) at org.apache.cassandra.db.rows.LazilyInitializedUnfilteredRowIterator.computeNext(LazilyInitializedUnfilteredRowIterator.java:33) at org.apache.cassandra.utils.AbstractIterator.hasNext(AbstractIterator.java:47) at org.apache.cassandra.db.transform.BaseRows.hasNext(BaseRows.java:131) at org.apache.cassandra.db.transform.UnfilteredRows.isEmpty(UnfilteredRows.java:74) at org.apache.cassandra.db.partitions.PurgeFunction.applyToPartition(PurgeFunction.java:68) at org.apache.cassandra.db.partitions.PurgeFunction.applyToPartition(PurgeFunction.java:28) at org.apache.cassandra.db.transform.BasePartitions.hasNext(BasePartitions.java:93) at org.apache.cassandra.db.compaction.CompactionIterator.hasNext(CompactionIterator.java:236) at org.apache.cassandra.db.compaction.CompactionTask.runMayThrow(CompactionTask.java:208) at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) at org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:87) at org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:101) at org.apache.cassandra.db.compaction.CompactionManager$5.execute(CompactionManager.java:506) at org.apache.cassandra.db.compaction.CompactionManager$2.call(CompactionManager.java:375) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.cassandra.concurrent.NamedThreadFactory.lambda$threadLocalDeallocator$0(NamedThreadFactory.java:79) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:748) Caused by: java.io.IOException: Corrupt (negative) value length encountered
We tried scrubbing this corrupted sstable using header fix command but again we are getting below error :
root@ubuntu:/home/ubuntu# sstablescrub -e fix-only test_keyspace quote WARN 14:32:18,698 Only 46.123GiB free across all data volumes. Consider adding more capacity to your cluster or removing obsolete snapshots WARN 14:32:27,821 Legacy view Keyspace(name='test_keyspace').VIEW_ASSIGNMENT_BY_UUID detected with unselected columns. Out of order updates to these columns may not be reflected on view. Re-create view to remove this limitation. WARN 14:32:27,822 Legacy view Keyspace(name='test_keyspace').VIEW_ASSIGNMENT_BY_UUID detected with filtered columns. Expiration or removal of filtered columns may not remove view rows in some scenarios. Re-create view to remove this limitation. Pre-scrub sstables snapshotted into snapshot pre-scrub-1594198947823 ERROR sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-7-big: contains column 'config_set' as type 'config_set', but schema mentions 'frozen<config_set>' ERROR sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-7-big: contains column 'lead_info' as type 'lead_info', but schema mentions 'frozen<lead_info>' ERROR sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-7-big: contains column 'maintainance_values' as type 'maintainance_values', but schema mentions 'frozen<maintainance_values>' ERROR sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-7-big: contains column 'pricing_summary' as type 'pricing_summary', but schema mentions 'frozen<pricing_summary>' ERROR sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-7-big: contains column 'project_component_details' as type 'project_component_details', but schema mentions 'frozen<project_component_details>' ERROR sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-7-big: contains column 'quote_details' as type 'quote_details', but schema mentions 'frozen<quote_details>' ERROR sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-7-big: contains column 'validation_status' as type 'validation_status', but schema mentions 'frozen<validation_status>' ERROR sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-7-big: contains column 'line_items' as type 'set<line_item>', but schema mentions 'set<frozen<line_item>>' ERROR sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-7-big: contains column 'quote_profiles' as type 'set<quote_profile>', but schema mentions 'set<frozen<quote_profile>>' ERROR sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-7-big: contains column 'site_details' as type 'set<party>', but schema mentions 'set<frozen<party>>' ERROR sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-7-big: contains column 'site_wise_pricing_summary' as type 'set<map_type>', but schema mentions 'set<frozen<map_type>>' ERROR sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-6-big: contains column 'config_set' as type 'config_set', but schema mentions 'frozen<config_set>' ERROR sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-6-big: contains column 'lead_info' as type 'lead_info', but schema mentions 'frozen<lead_info>' ERROR sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-6-big: contains column 'maintainance_values' as type 'maintainance_values', but schema mentions 'frozen<maintainance_values>' ERROR sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-6-big: contains column 'pricing_summary' as type 'pricing_summary', but schema mentions 'frozen<pricing_summary>' ERROR sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-6-big: contains column 'project_component_details' as type 'project_component_details', but schema mentions 'frozen<project_component_details>' ERROR sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-6-big: contains column 'quote_details' as type 'quote_details', but schema mentions 'frozen<quote_details>' ERROR sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-6-big: contains column 'validation_status' as type 'validation_status', but schema mentions 'frozen<validation_status>' ERROR sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-6-big: contains column 'line_items' as type 'set<line_item>', but schema mentions 'set<frozen<line_item>>' ERROR sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-6-big: contains column 'quote_profiles' as type 'set<quote_profile>', but schema mentions 'set<frozen<quote_profile>>' ERROR sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-6-big: contains column 'site_details' as type 'set<party>', but schema mentions 'set<frozen<party>>' ERROR sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-6-big: contains column 'site_wise_pricing_summary' as type 'set<map_type>', but schema mentions 'set<frozen<map_type>>' INFO sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-20-big: Column 'config_set' needs to be updated from type 'config_set' to 'frozen<config_set>' INFO sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-20-big: Column 'lead_info' needs to be updated from type 'lead_info' to 'frozen<lead_info>' INFO sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-20-big: Column 'maintainance_values' needs to be updated from type 'maintainance_values' to 'frozen<maintainance_values>' INFO sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-20-big: Column 'pricing_summary' needs to be updated from type 'pricing_summary' to 'frozen<pricing_summary>' INFO sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-20-big: Column 'project_component_details' needs to be updated from type 'project_component_details' to 'frozen<project_component_details>' INFO sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-20-big: Column 'quote_details' needs to be updated from type 'quote_details' to 'frozen<quote_details>' INFO sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-20-big: Column 'validation_status' needs to be updated from type 'validation_status' to 'frozen<validation_status>' INFO sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-20-big: Column 'line_items' needs to be updated from type 'set<line_item>' to 'set<frozen<line_item>>' INFO sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-20-big: Column 'quote_profiles' needs to be updated from type 'set<quote_profile>' to 'set<frozen<quote_profile>>' INFO sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-20-big: Column 'site_details' needs to be updated from type 'set<party>' to 'set<frozen<party>>' INFO sstable /var/lib/cassandra/data/test_keyspace/quote-622b9ad1bb6411eaa5f16143bebae437/mc-20-big: Column 'site_wise_pricing_summary' needs to be updated from type 'set<map_type>' to 'set<frozen<map_type>>' INFO Stopping due to previous errors. Either fix the errors or specify the ignore-errors option. Errors in serialization-header detected, aborting.
Please check all this information and help us to resolve this