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

Nodes never bootstrap if schema is empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.2.16
    • None
    • None
    • Normal

    Description

      Since 1.2.15, bootstrap never completes if the schema is empty. The bootstrapping node endlessly prints:

      INFO 12:37:44,863 JOINING: waiting for schema information to complete

      until you add something to the schema (i.e. create a keyspace).

      The problem looks to be caused by CASSANDRA-6648, where MigrationManager.isReadForBootstrap() was changed to:

      return Schema.instance.getVersion() != null && !Schema.emptyVersion.equals(Schema.instance.getVersion());

      This is wrong since Schema.emptyVersion.equals(Schema.instance.getVersion()) is always true if there is no schema.

      We need some different logic for determining when the schema is propagated.

      I haven't tested, but I expect this issue appears in 2.0.5 too.

      Attachments

        Activity

          People

            brandon.williams Brandon Williams
            rlow Richard Low
            Brandon Williams
            Richard Low
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: