[ 
https://issues.apache.org/jira/browse/CASSANDRA-21111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18053297#comment-18053297
 ] 

Stefan Miklosovic commented on CASSANDRA-21111:
-----------------------------------------------

After further investigation it turns out that code which generates ID is just 
fine. The node was just aggressively creating new SSTables. Their sizes were in 
kilobytes, even less. Maybe some of them were also corrupted. I think it was 
faulty disk or some other underlying issue, like bug in compaction or unable to 
write to disk or something similar, which just magnified the problems to such 
extent that space for IDs was overflown. 

I am quitting on this ticket for now, moving to longs would just postpone the 
symptoms of other, underlying, issue and there is no reason / no point doing 
that for now. 

> Cassandra sstable generation ID's are a signed int which might overflow
> -----------------------------------------------------------------------
>
>                 Key: CASSANDRA-21111
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21111
>             Project: Apache Cassandra
>          Issue Type: Bug
>          Components: Local/SSTable
>            Reporter: Stefan Miklosovic
>            Assignee: Stefan Miklosovic
>            Priority: Normal
>             Fix For: 4.0.x, 4.1.x, 5.0.x, 5.x
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> We need to triage this but this seems to be legit:
> We have hit an issue with a cluster that where sstable generation ID’s for a 
> peer has incremented so high that it has overflowed, which has introduced a 
> 2nd dash into the file name. For example:
> nb--2146021117-big-data.db
> This caused an issue with our solution which is aimed to consolidate 
> partition statistics in the data set. The current version of the solution 
> does not recognise the possibility of sstable generation ID’s being a 
> negative value - which causes it to fail.
> Workaround:
> Rename all sstables in the table to “reset” the generation ID.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to