public static synchronized void mergeSchemaAndAnnounceVersion(Collection<Mutation> mutations, Collection<MigrationListener> inhibitedListeners) throws ConfigurationException { mergeSchema(mutations, inhibitedListeners); Schema.instance.updateVersionAndAnnounce(); }
/** * Merge remote schema in form of mutations with local and mutate ks/cf metadata objects * (which also involves fs operations on add/drop ks/cf) * * @param mutations the schema changes to apply * * @throws ConfigurationException If one of metadata attributes has invalid value */ public static synchronized void mergeSchemaAndAnnounceVersion(Collection<Mutation> mutations) throws ConfigurationException { mergeSchema(mutations); Schema.instance.updateVersionAndAnnounce(); }
/** * Merge remote schema in form of mutations with local and mutate ks/cf metadata objects * (which also involves fs operations on add/drop ks/cf) * * @param mutations the schema changes to apply * * @throws ConfigurationException If one of metadata attributes has invalid value */ public static synchronized void mergeSchemaAndAnnounceVersion(Collection<Mutation> mutations) throws ConfigurationException { mergeSchema(mutations); Schema.instance.updateVersionAndAnnounce(); }
/** * Merge remote schema in form of mutations with local and mutate ks/cf metadata objects * (which also involves fs operations on add/drop ks/cf) * * @param mutations the schema changes to apply * * @throws ConfigurationException If one of metadata attributes has invalid value * @throws IOException If data was corrupted during transportation or failed to apply fs operations */ public static synchronized void mergeSchema(Collection<Mutation> mutations) throws ConfigurationException, IOException { mergeSchemaInternal(mutations, true); Schema.instance.updateVersionAndAnnounce(); }
public static synchronized void reloadSchemaAndAnnounceVersion() { Keyspaces before = Schema.instance.getReplicatedKeyspaces(); Keyspaces after = fetchNonSystemKeyspaces(); mergeSchema(before, after); Schema.instance.updateVersionAndAnnounce(); }
public static synchronized void reloadSchemaAndAnnounceVersion() { Keyspaces before = Schema.instance.getReplicatedKeyspaces(); Keyspaces after = fetchNonSystemKeyspaces(); mergeSchema(before, after); Schema.instance.updateVersionAndAnnounce(); }
public static synchronized void reloadSchemaAndAnnounceVersion() { Keyspaces before = Schema.instance.getReplicatedKeyspaces(); Keyspaces after = fetchNonSystemKeyspaces(); mergeSchema(before, after, Collections.EMPTY_LIST); Schema.instance.updateVersionAndAnnounce(); }
/** * Clear all KS/CF metadata and reset version. */ public synchronized void clear() { for (String keyspaceName : getNonSystemKeyspaces()) { KSMetaData ksm = getKSMetaData(keyspaceName); for (CFMetaData cfm : ksm.cfMetaData().values()) purge(cfm); clearKeyspaceDefinition(ksm); } updateVersionAndAnnounce(); }
/** * Clear all KS/CF metadata and reset version. */ public synchronized void clear() { for (String keyspaceName : getNonSystemKeyspaces()) { KeyspaceMetadata ksm = getKSMetaData(keyspaceName); ksm.tables.forEach(this::unload); ksm.views.forEach(this::unload); clearKeyspaceMetadata(ksm); } updateVersionAndAnnounce(); }
/** * Clear all KS/CF metadata and reset version. */ public synchronized void clear() { for (String keyspaceName : getNonSystemKeyspaces()) { KeyspaceMetadata ksm = getKSMetaData(keyspaceName); ksm.tables.forEach(this::unload); ksm.views.forEach(this::unload); clearKeyspaceMetadata(ksm); } updateVersionAndAnnounce(); }
/** * Clear all KS/CF metadata and reset version. */ public synchronized void clear() { for (String keyspaceName : getNonSystemKeyspaces()) { KeyspaceMetadata ksm = getKSMetaData(keyspaceName); ksm.tables.forEach(this::unload); ksm.views.forEach(this::unload); clearKeyspaceMetadata(ksm); } updateVersionAndAnnounce(); }
Schema.instance.updateVersionAndAnnounce(); // Ensure we know our own actual Schema UUID in preparation for updates
Schema.instance.updateVersionAndAnnounce(); // Ensure we know our own actual Schema UUID in preparation for updates LoadBroadcaster.instance.startBroadcasting(); HintsService.instance.startDispatch();
Schema.instance.updateVersionAndAnnounce(); // Ensure we know our own actual Schema UUID in preparation for updates LoadBroadcaster.instance.startBroadcasting(); HintsService.instance.startDispatch();
Schema.instance.updateVersionAndAnnounce(); // Ensure we know our own actual Schema UUID in preparation for updates LoadBroadcaster.instance.startBroadcasting(); HintsService.instance.startDispatch();