Skip to content

KAFKA-1833: OfflinePartitionLeaderSelector may return null leader when ISR and Assgi...#39

Closed
tedxia wants to merge 1 commit into
apache:0.8.2from
tedxia:fix-select-leader
Closed

KAFKA-1833: OfflinePartitionLeaderSelector may return null leader when ISR and Assgi...#39
tedxia wants to merge 1 commit into
apache:0.8.2from
tedxia:fix-select-leader

Conversation

@tedxia

@tedxia tedxia commented Dec 29, 2014

Copy link
Copy Markdown

PR for KAFKA-1833

In OfflinePartitonLeaderSelector::selectLeader, when liveBrokerInIsr is not empty and have no common broker with liveAssignedreplicas, selectLeader will return no leader;

@joestein

Copy link
Copy Markdown
Contributor

Hi @tedxia do you mind please to use the review tool https://cwiki.apache.org/confluence/display/KAFKA/Kafka+patch+review+tool so folks can review your patch on JIRA, thanks!

@tedxia

tedxia commented Dec 30, 2014

Copy link
Copy Markdown
Author

@joestein I have add patch through kafka patch review tool, please review it, thank you.

@tedxia

tedxia commented Apr 8, 2015

Copy link
Copy Markdown
Author

Will somebody have a look at this, thanks a lot;

guozhangwang added a commit to guozhangwang/kafka that referenced this pull request Sep 9, 2015
Fix ProcessorJob; rename streaming to streams
resetius added a commit to resetius/kafka that referenced this pull request Apr 22, 2016
@guozhangwang

Copy link
Copy Markdown
Contributor

@tedxia Sorry for late reviews. I think this behavior is by-design that if there is no live brokers in the assigned replicas, we will return null leader indicating that this partition is offline.

@asfbot

asfbot commented Dec 21, 2016

Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/297/
Test FAILed (JDK 8 and Scala 2.12).

@asfbot

asfbot commented Dec 21, 2016

Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk7-scala2.10/296/
Test FAILed (JDK 7 and Scala 2.10).

@asfbot

asfbot commented Dec 21, 2016

Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/kafka-pr-jdk8-scala2.11/298/
Test FAILed (JDK 8 and Scala 2.11).

@tedxia

tedxia commented Dec 21, 2016

Copy link
Copy Markdown
Author

ok, I will close this issue.

@tedxia tedxia closed this Dec 21, 2016
@tedxia tedxia deleted the fix-select-leader branch December 21, 2016 01:52
efeg pushed a commit to efeg/kafka that referenced this pull request Jan 29, 2020
satishd referenced this pull request in satishd/kafka Mar 23, 2020
MINOR Refactored `deleteLogSegment` API to return void and always throw RemoteStorageException if the operation is failed.
smccauliff pushed a commit to smccauliff/kafka that referenced this pull request Oct 8, 2020
…ompatibility (apache#39)

TICKET =
LI_DESCRIPTION =
Some apps such as linkedin-kafka-clients and likafka-cruise-control still reply on this API:
parseAndValidateAddresses(List<String> urls).
This patch adds back the function.

EXIT_CRITERIA = MANUAL ["when no APP makes direct use of this API"]
wyuka pushed a commit to wyuka/kafka that referenced this pull request Jan 7, 2022
…ompatibility (apache#39)

TICKET =
LI_DESCRIPTION =
Some apps such as linkedin-kafka-clients and likafka-cruise-control still reply on this API:
parseAndValidateAddresses(List<String> urls).
This patch adds back the function.

EXIT_CRITERIA = MANUAL ["when no APP makes direct use of this API"]
wyuka pushed a commit to wyuka/kafka that referenced this pull request Mar 4, 2022
…ompatibility (apache#39)

TICKET =
LI_DESCRIPTION =
Some apps such as linkedin-kafka-clients and likafka-cruise-control still reply on this API:
parseAndValidateAddresses(List<String> urls).
This patch adds back the function.

EXIT_CRITERIA = MANUAL ["when no APP makes direct use of this API"]
wyuka pushed a commit to wyuka/kafka that referenced this pull request Mar 28, 2022
…ompatibility (apache#39)

TICKET =
LI_DESCRIPTION =
Some apps such as linkedin-kafka-clients and likafka-cruise-control still reply on this API:
parseAndValidateAddresses(List<String> urls).
This patch adds back the function.

EXIT_CRITERIA = MANUAL ["when no APP makes direct use of this API"]
wyuka pushed a commit to wyuka/kafka that referenced this pull request Jun 16, 2022
…ompatibility (apache#39)

TICKET =
LI_DESCRIPTION =
Some apps such as linkedin-kafka-clients and likafka-cruise-control still reply on this API:
parseAndValidateAddresses(List<String> urls).
This patch adds back the function.

EXIT_CRITERIA = MANUAL ["when no APP makes direct use of this API"]
kamalcph added a commit to kamalcph/kafka that referenced this pull request Sep 21, 2022
* Tests added for UnifiedLog, RemoteIndexCache, LeaderEpochFileCache and ProducerStateManager
* RemoteLogManager instantiation test on KafkaServer and BrokerServer added.
* LeaderEpochFileCache assign-without-flush test case added.
* Covered test for UnifiedLog#legacyFetchOffsetsBefore
rustd pushed a commit to rustd/pranavfinaldemokafka that referenced this pull request Feb 9, 2024
Tests for 21a15c6
Implements KIP-862: https://cwiki.apache.org/confluence/x/WSf1D

Reviewer: John Roesler <vvcephei@apache.org>

Co-authored-by: Vicky Papavasileiou <vpapavas@users.noreply.github.com>
patrik-marton pushed a commit to patrik-marton/kafka that referenced this pull request Mar 11, 2025
CSMDS-525: Bump stack version to 1.1.0

MINOR: increase unit test retry from 3 to 5 (CSMDS-493 workaround) (apache#39)
fvaleri added a commit to fvaleri/kafka that referenced this pull request Nov 6, 2025
Add mirror fetcher refactoring
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