-
Notifications
You must be signed in to change notification settings - Fork 6
Allowing additional configs. Fixing config values. Renamed some configs #4
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
Conversation
// Required common Kafka properties for producers and consumers | ||
public static final Set<String> KAFKA_PROPERTIES = new HashSet<>(asList(BOOTSTRAP_SERVERS, CONNECTIONS_MAX_IDLE_MS)); | ||
|
||
// Producer specific properties |
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.
Put the comment to line 30.
KAFKA_PRODUCER_PROPERTIES.addAll(KAFKA_PROPERTIES); | ||
} | ||
|
||
// Consumer specific properties |
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.
ditto
@@ -1,33 +1,65 @@ | |||
# These are required Kafka settings for consumers and producers |
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: Add a period for each sentence in your comments.
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.
I added periods to sentences. If it's a title, it looks weird, so I left it out.
|
||
# Kafka PubSub properties | ||
# The number of messages that can received before at least one commit is needed. | ||
bullet.pubsub.kafka.consumer.max.uncommitted.messages: 50 |
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.
This doesn't need to be a string?
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.
This is a Bullet config so I can keep proper types. Kafka params are better off being Strings since Kafka casts. Otherwise, they need to be the exact type (it doesn't do Longs to Integer etc). That being said, this param is confusing because it has the same prefix as the Kafka consumer so I'll change the consumer in the prefix.
bullet.pubsub.kafka.consumer.request.timeout.ms: "35000" | ||
|
||
# Kafka PubSub properties | ||
# The number of messages that can received before at least one commit is needed. |
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.
Missing "be"?
Tested this on a secure Kafka cluster. Seems to be working. |
Will wait to merge till I test this out but feel free to take a look