Skip to content

Conversation

akshaisarma
Copy link
Member

Will wait to merge till I test this out but feel free to take a look

@akshaisarma akshaisarma requested a review from hbxie October 5, 2017 04:59
@akshaisarma akshaisarma added this to the 0.2.0 milestone Oct 5, 2017
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 2b9c0e6 on configs-fix into 3e6fbd7 on master.

// 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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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.

Copy link
Member Author

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.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling f1b816f on configs-fix into 3e6fbd7 on master.

hbxie
hbxie previously approved these changes Oct 5, 2017

# 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
Copy link
Member

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?

Copy link
Member Author

@akshaisarma akshaisarma Oct 17, 2017

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.
Copy link
Member

Choose a reason for hiding this comment

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

Missing "be"?

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling e46c9fe on configs-fix into 3e6fbd7 on master.

@akshaisarma
Copy link
Member Author

akshaisarma commented Oct 21, 2017

Tested this on a secure Kafka cluster. Seems to be working.

@akshaisarma akshaisarma merged commit c93034a into master Oct 21, 2017
@akshaisarma akshaisarma deleted the configs-fix branch October 21, 2017 00:52
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.

4 participants