Source:
<code>public void startup(ICluster cluster) { sync(() -> { try { FileUtils.setFSErrorHandler(new DefaultFSErrorHandler()); if (config.has(GOSSIP)) { System.setProperty("cassandra.ring_delay_ms", "5000"); System.setProperty("cassandra.consistent.rangemovement", "false"); System.setProperty("cassandra.consistent.simultaneousmoves.allow", "true"); } mkdirs(); assert config.networkTopology().contains(config.broadcastAddressAndPort()); DistributedTestSnitch.assign(config.networkTopology()); DatabaseDescriptor.daemonInitialization(); DatabaseDescriptor.createAllDirectories(); CommitLog.instance.start(); SystemKeyspace.persistLocalMetadata(); SystemKeyspaceMigrator40.migrate(); try { Schema.instance.loadFromDisk(); } catch (Exception e) { throw e; } Keyspace.setInitialized(); try { CommitLog.instance.recoverSegmentsOnDisk(); } catch (IOException e) { throw new RuntimeException(e); } registerFilter(cluster); if (config.has(NETWORK)) { MessagingService.instance().listen(); } else { registerMockMessaging(cluster); } JVMStabilityInspector.replaceKiller(new InstanceKiller()); <START> ActiveRepairService.instance.start(); <END> if (config.has(GOSSIP)) { StorageService.instance.initServer(); StorageService.instance.removeShutdownHook(); } else { initializeRing(cluster); } StorageService.instance.ensureTraceKeyspace(); SystemKeyspace.finishStartup(); if (config.has(NATIVE_PROTOCOL)) { CassandraDaemon.getInstanceForTesting().setupVirtualKeyspaces(); CassandraDaemon.getInstanceForTesting().initializeNativeTransport(); CassandraDaemon.getInstanceForTesting().startNativeTransport(); StorageService.instance.setRpcReady(true); } if (!FBUtilities.getBroadcastAddressAndPort().equals(broadcastAddressAndPort())) throw new IllegalStateException(); } catch (Throwable t) { if (t instanceof RuntimeException) throw (RuntimeException) t; throw new RuntimeException(t); } }).run(); }</code><technical_language>Do want hide this a feature flag? yes</technical_language>

Target:
public void startup(ICluster cluster) { sync(() -> { try { FileUtils.setFSErrorHandler(new DefaultFSErrorHandler()); if (config.has(GOSSIP)) { System.setProperty("cassandra.ring_delay_ms", "5000"); System.setProperty("cassandra.consistent.rangemovement", "false"); System.setProperty("cassandra.consistent.simultaneousmoves.allow", "true"); } mkdirs(); assert config.networkTopology().contains(config.broadcastAddressAndPort()); DistributedTestSnitch.assign(config.networkTopology()); DatabaseDescriptor.daemonInitialization(); DatabaseDescriptor.createAllDirectories(); CommitLog.instance.start(); SystemKeyspace.persistLocalMetadata(); SystemKeyspaceMigrator40.migrate(); try { Schema.instance.loadFromDisk(); } catch (Exception e) { throw e; } Keyspace.setInitialized(); try { CommitLog.instance.recoverSegmentsOnDisk(); } catch (IOException e) { throw new RuntimeException(e); } if (config.has(NETWORK)) { MessagingService.instance().listen(); } else { registerMockMessaging(cluster); } registerInboundFilter(cluster); registerOutboundFilter(cluster); JVMStabilityInspector.replaceKiller(new InstanceKiller()); ActiveRepairService.instance.start(); if (config.has(GOSSIP)) { StorageService.instance.initServer(); StorageService.instance.removeShutdownHook(); } else { initializeRing(cluster); } StorageService.instance.ensureTraceKeyspace(); SystemKeyspace.finishStartup(); if (config.has(NATIVE_PROTOCOL)) { CassandraDaemon.getInstanceForTesting().setupVirtualKeyspaces(); CassandraDaemon.getInstanceForTesting().initializeNativeTransport(); CassandraDaemon.getInstanceForTesting().startNativeTransport(); StorageService.instance.setRpcReady(true); } if (!FBUtilities.getBroadcastAddressAndPort().equals(broadcastAddressAndPort())) throw new IllegalStateException(); } catch (Throwable t) { if (t instanceof RuntimeException) throw (RuntimeException) t; throw new RuntimeException(t); } }).run(); }