Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Pd 257044 databus changes rebase #849

Merged
merged 9 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import com.google.inject.Provides;
import com.google.inject.Singleton;
import com.google.inject.TypeLiteral;
import com.timgroup.statsd.StatsDClient;
import org.apache.curator.framework.CuratorFramework;

import java.time.Clock;
Expand Down Expand Up @@ -76,6 +77,7 @@ public QueueModule(MetricRegistry metricRegistry) {
@Override
protected void configure() {
bind(CassandraFactory.class).asEagerSingleton();
bind(StatsDClient.class).asEagerSingleton();

// Event Store
bind(ChannelConfiguration.class).to(QueueChannelConfiguration.class).asEagerSingleton();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
import com.bazaarvoice.emodb.sor.db.cql.CqlForMultiGets;
import com.bazaarvoice.emodb.sor.db.cql.CqlForScans;
import com.bazaarvoice.emodb.sor.db.cql.SorCqlSettingsTask;
import com.bazaarvoice.emodb.sor.kafka.KafkaProducerService;
import com.bazaarvoice.emodb.sor.log.LogbackSlowQueryLogProvider;
import com.bazaarvoice.emodb.sor.log.SlowQueryLog;
import com.bazaarvoice.emodb.sor.log.SlowQueryLogConfiguration;
Expand Down Expand Up @@ -195,6 +196,7 @@ protected void configure() {
bind(SlowQueryLog.class).toProvider(LogbackSlowQueryLogProvider.class);
bind(HintsConsistencyTimeProvider.class).asEagerSingleton();
bind(MinLagConsistencyTimeProvider.class).asEagerSingleton();
bind(KafkaProducerService.class);

// The web servers are responsible for updating the ZooKeeper full consistency data. CLI tools don't need to.
// Enable updating the ZooKeeper full consistency data if specified
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,6 @@ public static Properties getProducerProps() {
return producerProps;
}

// Kafka Admin properties
public static Properties getAdminProps() {
Properties adminProps = new Properties();

adminProps.put(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG, bootstrapServersConfig);
logger.info("Kafka Admin properties initialized.");
return adminProps;
}

// Ensure the SSM client is closed when the application shuts down
public static void shutdown() {
if (ssmClient != null) {
Expand Down