public void updateVersionAndAnnounce() { updateVersion(); MigrationManager.passiveAnnounce(version); }
/** * Load schema definitions from disk. * * @param updateVersion true if schema version needs to be updated */ public Schema loadFromDisk(boolean updateVersion) { load(SchemaKeyspace.fetchNonSystemKeyspaces()); if (updateVersion) updateVersion(); return this; }
/** * Load schema definitions from disk. * * @param updateVersion true if schema version needs to be updated */ public Schema loadFromDisk(boolean updateVersion) { load(SchemaKeyspace.fetchNonSystemKeyspaces()); if (updateVersion) updateVersion(); return this; }
/** * Load schema definitions from disk. * * @param updateVersion true if schema version needs to be updated */ public Schema loadFromDisk(boolean updateVersion) { load(SchemaKeyspace.fetchNonSystemKeyspaces()); if (updateVersion) updateVersion(); return this; }
/** * Like updateVersion, but also announces via gossip * * 3.11 note: we announce the "current" schema version, which can be either the 3.0 * compatible one, if at least one node is still running 3.0, or the "real" schema version. */ public void updateVersionAndAnnounce() { updateVersion(); UUID current = getVersion(); MigrationManager.passiveAnnounce(current, current == getAltVersion()); }
/** * Like updateVersion, but also announces via gossip * * 3.11 note: we announce the "current" schema version, which can be either the 3.0 * compatible one, if at least one node is still running 3.0, or the "real" schema version. */ public void updateVersionAndAnnounce() { updateVersion(); UUID current = getVersion(); MigrationManager.passiveAnnounce(current, current == getAltVersion()); }
/** * Like updateVersion, but also announces via gossip * * 3.11 note: we announce the "current" schema version, which can be either the 3.0 * compatible one, if at least one node is still running 3.0, or the "real" schema version. */ public void updateVersionAndAnnounce() { updateVersion(); UUID current = getVersion(); MigrationManager.passiveAnnounce(current, current == getAltVersion()); }
/** * Load schema definitions. * * @param updateVersion true if schema version needs to be updated */ public static void loadSchemas(boolean updateVersion) { ColumnFamilyStore schemaCFS = SystemKeyspace.schemaCFS(SystemKeyspace.SCHEMA_KEYSPACES_CF); // if keyspace with definitions is empty try loading the old way if (schemaCFS.estimateKeys() == 0) { logger.info("Couldn't detect any schema definitions in local storage."); // peek around the data directories to see if anything is there. if (hasExistingNoSystemTables()) logger.info("Found keyspace data in data directories. Consider using cqlsh to define your schema."); else logger.info("To create keyspaces and column families, see 'help create' in cqlsh."); } else { Schema.instance.load(DefsTables.loadFromKeyspace()); } if (updateVersion) Schema.instance.updateVersion(); }