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

upgrade from C* 3.11.9 to 4.0-beta3 fails if 3.11.9 is configured with OldNetworkTopologyStrategy

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 4.0, 4.0-beta4
    • Component/s: None
    • Labels:
      None

      Description

      When we upgrade Cassandra from 3.11.9 to 4.0-beta3, if the old cluster (3.11.9) is configured with OldNetworkTopologyStrategy, 4.0-beta3 Cassandra fails to start with the following exception: 

       

      ERROR [main] 2020-11-24 22:49:33,423 CassandraDaemon.java:278 - Error while loading schema:
      org.apache.cassandra.exceptions.ConfigurationException: Unable to find replication strategy class 'org.apache.cassandra.locator.OldNetworkTopologyStrategy'
              at org.apache.cassandra.utils.FBUtilities.classForName(FBUtilities.java:720)
              at org.apache.cassandra.locator.AbstractReplicationStrategy.getClass(AbstractReplicationStrategy.java:422)
              at org.apache.cassandra.schema.ReplicationParams.fromMapWithDefaults(ReplicationParams.java:90)
              at org.apache.cassandra.schema.ReplicationParams.fromMap(ReplicationParams.java:82)
              at org.apache.cassandra.schema.KeyspaceParams.create(KeyspaceParams.java:64)
              at org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspaceParams(SchemaKeyspace.java:971)
              at org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspace(SchemaKeyspace.java:956)
              at org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspacesWithout(SchemaKeyspace.java:949)
              at org.apache.cassandra.schema.SchemaKeyspace.fetchNonSystemKeyspaces(SchemaKeyspace.java:859)
              at org.apache.cassandra.schema.Schema.loadFromDisk(Schema.java:100)
              at org.apache.cassandra.schema.Schema.loadFromDisk(Schema.java:89)
              at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:274)
              at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:671)
              at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:795)
      Caused by: java.lang.ClassNotFoundException: org.apache.cassandra.locator.OldNetworkTopologyStrategy
              at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:264)
              at org.apache.cassandra.utils.FBUtilities.classForName(FBUtilities.java:716)
              ... 13 common frames omitted
      Exception (org.apache.cassandra.exceptions.ConfigurationException) encountered during startup: Unable to find replication strategy class 'org.apache.cassandra.locator.OldNetworkTopologyStrategy'

       

       

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              blerer Benjamin Lerer Assign to me
              Reporter:
              zagol Yongle Zhang
              Authors:
              Benjamin Lerer
              Reviewers:
              Erick Ramirez

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment