Skip to content

KAFKA-2300: Error in controller log when broker tries to rejoin cluster#102

Closed
fpj wants to merge 5 commits intoapache:trunkfrom
fpj:2300
Closed

KAFKA-2300: Error in controller log when broker tries to rejoin cluster#102
fpj wants to merge 5 commits intoapache:trunkfrom
fpj:2300

Conversation

@fpj
Copy link
Copy Markdown
Contributor

@fpj fpj commented Jul 29, 2015

No description provided.

@asfbot
Copy link
Copy Markdown

asfbot commented Jul 29, 2015

kafka-trunk-git-pr #59 FAILURE
Looks like there's a problem with this pull request

@fpj
Copy link
Copy Markdown
Contributor Author

fpj commented Jul 29, 2015

The test failures do not seem to be related to this patch.

@asfbot
Copy link
Copy Markdown

asfbot commented Jul 29, 2015

kafka-trunk-git-pr #60 SUCCESS
This pull request looks good

@fpj
Copy link
Copy Markdown
Contributor Author

fpj commented Jul 30, 2015

Thanks, Ismael. I have made the change you suggested and also fixed some style issues as per your recommendation.

@asfbot
Copy link
Copy Markdown

asfbot commented Jul 30, 2015

kafka-trunk-git-pr #68 SUCCESS
This pull request looks good

@guozhangwang
Copy link
Copy Markdown
Contributor

@fpj Is this patch ready for review now?

@fpj
Copy link
Copy Markdown
Contributor Author

fpj commented Aug 8, 2015

it is ready for review, yes. @guozhangwang

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.

I am not familiar with String interpolation in Scala, but just double check if @ijuma 's comment of using $ instead of % is still valid?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes, it is. One needs to use $ and s" on strings that are interpolated. So, this and many other examples have two issues: % is used and the s" is in the string that doesn't need it but not in the one that does. It does seem like @fpj was quite conservative in the line break. I'd probably write many of these as just a single line.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I prefer line breaks over long lines, is that alright?

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.

Myself sometimes over-use line breakers and sometimes do not use at all and write very long lines, I guess depending on what I ate on that day :P, or more likely if I a used larger monitor on that day. I think we do not have a strict rule about when to use line breaks.

Anyways, all others good to me, @fpj do you want to change the % and s" before I merge it?

@fpj
Copy link
Copy Markdown
Contributor Author

fpj commented Aug 12, 2015

hi @guozhangwang @ijuma

Thanks for reviewing this patch. I have updated it according to your comments. The two main things I have done are to wrap all calls to sendRequestToBrokers with a try/catch block (previously I was only doing it in the one that caused the bug described in the jira) and to fix the strings as you pointed out. Let me know if this ok.

@asfbot
Copy link
Copy Markdown

asfbot commented Aug 12, 2015

kafka-trunk-git-pr #131 SUCCESS
This pull request looks good

@asfgit asfgit closed this in a62d630 Aug 12, 2015
efeg added a commit to efeg/kafka that referenced this pull request Jan 29, 2020
davide-armand pushed a commit to aiven/kafka that referenced this pull request Dec 1, 2025
fvaleri added a commit to fvaleri/kafka that referenced this pull request Mar 16, 2026
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