/** * Live reloadable configurations for targeted sweep. If the enableSweepQueueWrites parameter of * {@link AtlasDbConfig#targetedSweep()} is not set to true, this configuration will be ignored. */ @Value.Default public TargetedSweepRuntimeConfig targetedSweep() { return TargetedSweepRuntimeConfig.defaultTargetedSweepRuntimeConfig(); }
public static ImmutableAtlasDbRuntimeConfig withSweepDisabled() { return ImmutableAtlasDbRuntimeConfig.builder() .sweep(SweepConfig.disabled()) .targetedSweep(TargetedSweepRuntimeConfig.disabled()) .build(); } }
@Test public void doesNotSweepDuringMigration() { assertThat(fromServices.getAtlasDbRuntimeConfig().sweep().enabled()).isFalse(); assertThat(fromServices.getAtlasDbRuntimeConfig().targetedSweep().enabled()).isFalse(); assertThat(toServices.getAtlasDbRuntimeConfig().sweep().enabled()).isFalse(); assertThat(toServices.getAtlasDbRuntimeConfig().targetedSweep().enabled()).isFalse(); }
public static ImmutableAtlasDbRuntimeConfig withSweepDisabled() { return ImmutableAtlasDbRuntimeConfig.builder() .sweep(SweepConfig.disabled()) .targetedSweep(TargetedSweepRuntimeConfig.disabled()) .build(); } }
/** * Live reloadable configurations for targeted sweep. If the enableSweepQueueWrites parameter of * {@link AtlasDbConfig#targetedSweep()} is not set to true, this configuration will be ignored. */ @Value.Default public TargetedSweepRuntimeConfig targetedSweep() { return TargetedSweepRuntimeConfig.defaultTargetedSweepRuntimeConfig(); }