Skip to content

Commit 3d0a086

Browse files
committed
Clean up old feature flags (#9015)
1 parent 8e4bff3 commit 3d0a086

File tree

4 files changed

+0
-19
lines changed

4 files changed

+0
-19
lines changed

airbyte-commons-worker/src/main/java/io/airbyte/workers/sync/LauncherWorker.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
package io.airbyte.workers.sync;
66

7-
import static io.airbyte.config.EnvConfigs.SOCAT_KUBE_CPU_LIMIT;
8-
import static io.airbyte.config.EnvConfigs.SOCAT_KUBE_CPU_REQUEST;
97
import static io.airbyte.metrics.lib.ApmTraceConstants.Tags.PROCESS_EXIT_VALUE_KEY;
108
import static io.airbyte.metrics.lib.ApmTraceConstants.WORKER_OPERATION_NAME;
119
import static io.airbyte.workers.process.Metadata.CONNECTION_ID_LABEL_KEY;
@@ -18,7 +16,6 @@
1816
import io.airbyte.commons.temporal.sync.OrchestratorConstants;
1917
import io.airbyte.commons.workers.config.WorkerConfigs;
2018
import io.airbyte.config.ResourceRequirements;
21-
import io.airbyte.featureflag.ConcurrentSocatResources;
2219
import io.airbyte.featureflag.Connection;
2320
import io.airbyte.featureflag.FeatureFlagClient;
2421
import io.airbyte.featureflag.UseCustomK8sScheduler;
@@ -36,7 +33,6 @@
3633
import io.fabric8.kubernetes.api.model.DeletionPropagation;
3734
import io.fabric8.kubernetes.api.model.Pod;
3835
import io.fabric8.kubernetes.client.KubernetesClientException;
39-
import io.micronaut.core.util.StringUtils;
4036
import java.nio.file.Path;
4137
import java.time.Duration;
4238
import java.util.Collections;
@@ -135,15 +131,6 @@ public OUTPUT run(final INPUT input, final Path jobRoot) throws WorkerException
135131
// Merge in the env from the ContainerOrchestratorConfig
136132
containerOrchestratorConfig.environmentVariables().entrySet().stream().forEach(e -> envMap.putIfAbsent(e.getKey(), e.getValue()));
137133

138-
// Allow for the override of the socat pod CPU resources as part of the concurrent source read
139-
// experimentation
140-
final String socatResources = featureFlagClient.stringVariation(ConcurrentSocatResources.INSTANCE, new Connection(connectionId));
141-
if (StringUtils.isNotEmpty(socatResources)) {
142-
LOGGER.info("Overriding Socat CPU limit and request to {}.", socatResources);
143-
envMap.put(SOCAT_KUBE_CPU_LIMIT, socatResources);
144-
envMap.put(SOCAT_KUBE_CPU_REQUEST, socatResources);
145-
}
146-
147134
final Map<String, String> fileMap = new HashMap<>(additionalFileMap);
148135
fileMap.putAll(Map.of(
149136
OrchestratorConstants.INIT_FILE_APPLICATION, application,

airbyte-featureflag/src/main/kotlin/FlagDefinitions.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ object RefreshSchemaPeriod : Temporary<Int>(key = "refreshSchema.period.hours",
7373

7474
object ConcurrentSourceStreamRead : Temporary<Boolean>(key = "concurrent.source.stream.read", default = false)
7575

76-
object ConcurrentSocatResources : Temporary<String>(key = "concurrent.socat.resources", default = "")
77-
7876
object ReplicationWorkerImpl : Permanent<String>(key = "platform.replication-worker-impl", default = "buffered")
7977

8078
object UseResourceRequirementsVariant : Permanent<String>(key = "platform.resource-requirements-variant", default = "default")

flags.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ flags:
2121
serve: 24
2222
- name: concurrent.source.stream.read
2323
serve: false
24-
- name: concurrent.socat.resources
25-
serve: ""
2624
- name: platform.add-scheduling-jitter
2725
serve: false
2826
- name: platform.use-new-schema-update-notification

tools/bin/acceptance-test-flags.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,5 @@ flags:
2121
serve: true
2222
- name: connection.columnSelection
2323
serve: true
24-
- name: handle.stream.status
25-
serve: false
2624
- name: refreshSchema.period.hours
2725
serve: 0

0 commit comments

Comments
 (0)