Skip to content

Commit

Permalink
Merge #4495
Browse files Browse the repository at this point in the history
4495: fix(broker): prevent auto config of elasticsearch client r=pihme a=pihme

## Description

Prevent ElasticSearch auto configuration.

## Related issues

closes #4403

#

Co-authored-by: pihme <pihme@users.noreply.github.com>
  • Loading branch information
zeebe-bors[bot] and pihme committed May 12, 2020
2 parents f005cea + 7d975e3 commit 43e195a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/src/main/java/io/zeebe/broker/StandaloneBroker.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.elasticsearch.rest.RestClientAutoConfiguration;
import org.springframework.core.env.Environment;

@SpringBootApplication
@SpringBootApplication(exclude = RestClientAutoConfiguration.class)
public class StandaloneBroker implements CommandLineRunner {

@Autowired BrokerCfg configuration;
Expand Down
3 changes: 2 additions & 1 deletion dist/src/main/java/io/zeebe/gateway/StandaloneGateway.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.elasticsearch.rest.RestClientAutoConfiguration;
import org.springframework.core.env.Environment;

public class StandaloneGateway {
Expand Down Expand Up @@ -116,7 +117,7 @@ public void run() {
SpringApplication.run(Launcher.class, args);
}

@SpringBootApplication
@SpringBootApplication(exclude = RestClientAutoConfiguration.class)
public static class Launcher implements CommandLineRunner {

@Autowired GatewayCfg configuration;
Expand Down

0 comments on commit 43e195a

Please sign in to comment.