Skip to content

Conversation

@gitlw
Copy link

@gitlw gitlw commented Jan 10, 2023

TICKET = LIKAFKA-49560
LI_DESCRIPTION =
As described in the ticket, we found that the LiCombinedControl requests can be disabled for newly
added brokers. The newly added brokers experience the following behavior

  1. the LiCombinedContrel requests are enabled when the broker starts up and host 0 replicas
  2. the LiCombinedControl requests are disabled when some replicas are assigned to the broker
  3. the LiCombinedControl requests can only be re-enabled after the broker is restarted

The reason for the problem in step 2 is that once the LiCombinedControl request is enabled
and a full LeaderAndISR request needs to be sent, it will try to merge the request while
doesn't honor the full request type. As a result, brokers receive the LeaderAndISR as
part of the LiCombinedControl, and treat it as an incremental LeaderAndISR instead of a full
request.

This PR tries to address the problem by having the full support of the LeaderAndISR request type
within LiCombinedControl.

EXIT_CRITERIA = The same as the LiCombinedControl request.

gitlw added 2 commits January 10, 2023 11:45
TICKET = LIKAFKA-49560
LI_DESCRIPTION =
As described in the ticket, we found that the LiCombinedControl requests can be disabled for newly
added brokers. The newly added brokers experience the following bebavior

1. the LiCombinedContrel requests are enabled when the broker starts up and host 0 replicas
2. the LiCombinedControl requests are disabled when some replicas are assigned to the broker
3. the LiCombinedControl requests can only be re-enabled after the broker is restarted

The reason for the problem in step 2 is that once the LiCombinedControl request is enabled
and a full LeaderAndISR request needs to be sent, it will try to merge request while
doesn't honor the full request type. As a result, brokers receive the LeaderAndISR as
part of the LiCombinedControl, and treat it as an incremental LeaderAndISR instead of a full
request.

This PR tries to address the problem by having full support of the LeaderAndISR request type
within LiCombinedControl.

EXIT_CRITERIA = The same as the LiCombinedControl request.
@gitlw gitlw force-pushed the support_full_leader_and_isr branch from e8cf30e to 80cfa96 Compare January 10, 2023 19:46
@gitlw gitlw marked this pull request as ready for review January 13, 2023 01:30
@gitlw gitlw requested review from groelofs and lmr3796 January 13, 2023 01:30
Copy link

@groelofs groelofs left a comment

Choose a reason for hiding this comment

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

LGTM, just a question about how much latitude we have on merging. From the description, it seemed like fixing the broker-handling half (i.e., making them aware of full vs. delta LAIR within LCCR) would suffice as a fix. It's not clear to me what the "stop merging at first full LAIR" part adds to the equation.

@gitlw gitlw merged commit 8c5b1ec into linkedin:3.0-li Jan 13, 2023
@gitlw gitlw deleted the support_full_leader_and_isr branch January 13, 2023 17:47
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.

3 participants