You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
doLoadSheddingstage. 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
Verifying this change
See the
ModularLoadManagerImplTest#testLoadSheddingunit test.Documentation
docdoc-requireddoc-not-neededdoc-complete