Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some small bugs including incorrect argument parsing and a race c… #133

Open
wants to merge 1 commit into
base: 4.1.1-post
Choose a base branch
from

Conversation

benstopford
Copy link
Contributor

…ondition

Copy link
Member

@mjsax mjsax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@benstopford Seems this PR slipped through. Sorry for that.

@@ -163,7 +163,7 @@ public void startEverythingElse() throws Exception {
services.add(new OrderDetailsService());
services.add(new ValidationsAggregatorService());

tailAllTopicsToConsole(CLUSTER.bootstrapServers());
// tailAllTopicsToConsole(CLUSTER.bootstrapServers());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove?

@@ -40,8 +40,8 @@ public static String parseArgsAndConfigure(String[] args) {
"[<bootstrap.servers> (optional, default: " + DEFAULT_BOOTSTRAP_SERVERS + ")] " +
"[<schema.registry.url> (optional, default: " + DEFAULT_SCHEMA_REGISTRY_URL + ")] ");
}
final String bootstrapServers = args.length > 1 ? args[1] : "localhost:9092";
final String schemaRegistryUrl = args.length > 2 ? args[2] : "http://localhost:8081";
final String bootstrapServers = args.length >= 1 ? args[0] : "localhost:9092";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: args.length > 0 (also next line)

@@ -36,7 +36,7 @@ public static void startKafkaCluster() {
CLUSTER.createTopic(Topics.ORDERS.name());
CLUSTER.createTopic(Topics.ORDER_VALIDATIONS.name());
Schemas.configureSerdesWithSchemaRegistryUrl(CLUSTER.schemaRegistryUrl());
MicroserviceTestUtils.tailAllTopicsToConsole(CLUSTER.bootstrapServers());
// MicroserviceTestUtils.tailAllTopicsToConsole(CLUSTER.bootstrapServers());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

@mjsax
Copy link
Member

mjsax commented Jan 20, 2019

I guess, the PR should be targeted against 4.1.0-post instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants