Skip to content

MINOR: Introduce producer.config property to ConsoleProducer#544

Closed
ijuma wants to merge 2 commits into
apache:trunkfrom
ijuma:producer-config-in-console-producer
Closed

MINOR: Introduce producer.config property to ConsoleProducer#544
ijuma wants to merge 2 commits into
apache:trunkfrom
ijuma:producer-config-in-console-producer

Conversation

@ijuma
Copy link
Copy Markdown
Member

@ijuma ijuma commented Nov 17, 2015

This makes it easier to pass security properties in the same way
to ConsoleConsumer and ConsoleProducer.

This makes it easier to pass security properties in the same way
to `ConsoleConsumer` and `ConsoleProducer`.
@ijuma ijuma force-pushed the producer-config-in-console-producer branch from fd53d95 to ac5194b Compare November 17, 2015 18:58
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just curious, do we need both "producer-property" and "producer.config" for passing the property values? And if yes let's make their naming style consistent.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'd remove producer-property, but that would break existing users right? Regarding the naming, I don't have a strong opinion, but we have producer.config in VerifiableProducer, MirrorMaker, ProducerPerformance and KafkaMigrationTool. And consumer.config in ConsoleConsumer, ConsumerPerformance, MirrorMaker, KafkaMigrationTool.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think the inconsistency with other options is better than inconsistency with every other tool. I suggest we look at making an improvement across all tools after 0.9.0.0.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we use producer-config instead of producer.config to be inline with format of other options?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could we add in the description that producer-property takes precedence over producer.config ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@junrao Pushed a commit with your suggestion. @SinghAsDev, I explained above why I used producer.config (it's what every other tool uses).

@ijuma
Copy link
Copy Markdown
Member Author

ijuma commented Nov 17, 2015

./gradlew test passed locally

@junrao
Copy link
Copy Markdown
Contributor

junrao commented Nov 18, 2015

Thanks for the patch. LGTM

asfgit pushed a commit that referenced this pull request Nov 18, 2015
This makes it easier to pass security properties in the same way
to `ConsoleConsumer` and `ConsoleProducer`.

Author: Ismael Juma <ismael@juma.me.uk>

Reviewers: Guozhang Wang <wangguoz@gmail.com>, Jun Rao <junrao@gmail.com>

Closes #544 from ijuma/producer-config-in-console-producer

(cherry picked from commit 06d2c78)
Signed-off-by: Jun Rao <junrao@gmail.com>
@asfgit asfgit closed this in 06d2c78 Nov 18, 2015
ijuma referenced this pull request in confluentinc/kafka Nov 18, 2015
This makes it easier to pass security properties in the same way
to `ConsoleConsumer` and `ConsoleProducer`.

Author: Ismael Juma <ismael@juma.me.uk>

Reviewers: Guozhang Wang <wangguoz@gmail.com>, Jun Rao <junrao@gmail.com>

Closes #544 from ijuma/producer-config-in-console-producer
@ijuma ijuma deleted the producer-config-in-console-producer branch March 1, 2016 22:48
efeg added a commit to efeg/kafka that referenced this pull request Jan 29, 2020
AnatolyPopov pushed a commit to aiven/kafka that referenced this pull request Mar 24, 2026
Add a new limiting configuration for cache sizing based on bytes instead
of entries.

Historically, previous caching library only supported sizing based on
entries. With Caffeine, sizing can now be defined by both entries and
max bytes using weigher.

When bytes limit is configured, weight-based eviction takes precedence
over count-based eviction. Caffeine does not support both simultaneously.

(cherry picked from commit cbfdff5)
AnatolyPopov pushed a commit to aiven/kafka that referenced this pull request Mar 24, 2026
Add a new limiting configuration for cache sizing based on bytes instead
of entries.

Historically, previous caching library only supported sizing based on
entries. With Caffeine, sizing can now be defined by both entries and
max bytes using weigher.

When bytes limit is configured, weight-based eviction takes precedence
over count-based eviction. Caffeine does not support both simultaneously.
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