-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
There was a problem hiding this 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()); |
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
I guess, the PR should be targeted against |
|
Closing this 6-year old PR. Versions 4.x are EOL already. We also migrated the content of this repo to https://github.com/confluentinc/tutorials in the mean time. |
…ondition