Skip to content

Conversation

@Demogorgon314
Copy link
Member

(cherry picked from commit 3f63768)

Motivation

The bundle ownership assignment logic doesn't know the previous unloaded broker when unloading happens. It might assign the bundle to the same broker. In this case, it might cause an infinite bundle unloading loop.

To resolve this issue, we can check the destination broker when doing the doLoadShedding stage. When the destination broker is the same as the current owner broker, we can skip this unload, and if it is different, we set the new owner in this stage.

Modifications

  • Transfer the bundle to the new owner when needed to unload.

Verifying this change

See the ModularLoadManagerImplTest#testLoadShedding unit test.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@Demogorgon314 Demogorgon314 self-assigned this Jul 26, 2023
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jul 26, 2023
@Technoboy- Technoboy- closed this Jul 27, 2023
@Technoboy- Technoboy- reopened this Jul 27, 2023
@Technoboy- Technoboy- merged commit 448d05a into apache:branch-2.11 Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs ready-to-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants