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

KAFKA-6592: Follow-up #4864

Merged
merged 6 commits into from
Apr 16, 2018
Merged

Conversation

guozhangwang
Copy link
Contributor

Do not require ConsoleConsumer to specify inner serde as s special property, but just a normal property of the message formatter.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@guozhangwang guozhangwang requested a review from ijuma April 12, 2018 18:46
@guozhangwang
Copy link
Contributor Author

retest this please

@guozhangwang guozhangwang merged commit 9871357 into apache:trunk Apr 16, 2018
import scala.collection.JavaConversions._
for (entry <- props) {
val key: String = entry._1
val value: String = entry._2
Copy link
Contributor

Choose a reason for hiding this comment

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

for ((key, value) <- props if key.startsWith(prefix) && key.length > prefix.length)
  newProps.put(key.substring(prefix.length), value)

Also, the method should be private and maybe it should be named propertiesWithKeyPrefixStripped or something.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ack, will do it as a hotfix commit.

jeqo pushed a commit to jeqo/kafka that referenced this pull request May 2, 2018
Do not require ConsoleConsumer to specify inner serde as s special property, but just a normal property of the message formatter.
ying-zheng pushed a commit to ying-zheng/kafka that referenced this pull request Jul 6, 2018
Do not require ConsoleConsumer to specify inner serde as s special property, but just a normal property of the message formatter.
@guozhangwang guozhangwang deleted the K6592-follow-up branch April 24, 2020 23:57
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.

2 participants