This repository was archived by the owner on Apr 1, 2024. It is now read-only.
This repository was archived by the owner on Apr 1, 2024. It is now read-only.
PR-20822: [fix][broker] Avoid infinite bundle unloading #5839
Open
Description
url: apache#20822
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
Metadata
Metadata
Assignees
Labels
No labels