[
https://issues.apache.org/jira/browse/CASSANDRA-20887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18018431#comment-18018431
]
Caleb Rackliffe commented on CASSANDRA-20887:
---------------------------------------------
I don't see any new failures in CI, but I'll do a full audit...
> Make legacy index rebuilds safe on Gossip -> TCM upgrades
> ---------------------------------------------------------
>
> Key: CASSANDRA-20887
> URL: https://issues.apache.org/jira/browse/CASSANDRA-20887
> Project: Apache Cassandra
> Issue Type: Bug
> Components: Feature/2i Index
> Reporter: Caleb Rackliffe
> Assignee: Caleb Rackliffe
> Priority: Normal
> Fix For: 6.x
>
> Attachments: ci_summary.html, result_details.tar.gz
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> On 5.0 -> trunk (6.0) upgrades, it is possible to start a legacy 2i build
> before schema has been committed, and this can lead to...
> {noformat}
> ERROR 2025-08-18 02:07:04,935 [SecondaryIndexManagement:1]
> org.apache.cassandra.utils.JVMStabilityInspector:70 - Exception in thread
> Thread[#92,SecondaryIndexManagement:1,5,SecondaryIndexManagement]
> java.lang.RuntimeException: java.lang.AssertionError: Unknown keyspace
> <redacted>
> at
> org.apache.cassandra.utils.Throwables.unchecked(Throwables.java:308)
> at org.apache.cassandra.utils.Throwables.cleaned(Throwables.java:327)
> at
> org.apache.cassandra.utils.FBUtilities.waitOnFuture(FBUtilities.java:561)
> at
> org.apache.cassandra.index.internal.CassandraIndex.buildBlocking(CassandraIndex.java:711)
> at
> org.apache.cassandra.index.internal.CassandraIndex.lambda$getBuildIndexTask$6(CassandraIndex.java:681)
> at org.apache.cassandra.concurrent.FutureTask.call(FutureTask.java:61)
> at org.apache.cassandra.concurrent.FutureTask.run(FutureTask.java:71)
> at
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
> at
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
> at
> io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
> at java.base/java.lang.Thread.run(Thread.java:1583)
> Caused by: java.lang.AssertionError: Unknown keyspace <redacted>
> at org.apache.cassandra.db.Keyspace.open(Keyspace.java:149)
> at org.apache.cassandra.db.Keyspace.openAndGetStore(Keyspace.java:167)
> at
> org.apache.cassandra.db.ReadExecutionController.forCommand(ReadExecutionController.java:154)
> at
> org.apache.cassandra.db.ReadCommand.executionController(ReadCommand.java:535)
> at
> org.apache.cassandra.index.SecondaryIndexManager.indexPartition(SecondaryIndexManager.java:1066)
> at
> org.apache.cassandra.index.internal.CollatedViewIndexBuilder.build(CollatedViewIndexBuilder.java:82)
> at
> org.apache.cassandra.db.compaction.CompactionManager$13.run(CompactionManager.java:2033)
> at
> org.apache.cassandra.concurrent.FutureTask$3.call(FutureTask.java:141)
> ... 6 common frames omitted
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]