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
Adjust service chain ownership when reassigning services between workers (#5435)
## Motivation
If a service is reassign from worker A to worker B by the controller
application, worker A should cease to be the owner of the service's
chain, and worker B should become an owner.
## Proposal
Upon reassignment, when telling worker A to stop running the service,
worker A will add worker B as an owner and notify the main controller
chain.
The main controller will then tell worker B to take over, telling it at
which height on the service chain it became an owner. Worker B then
waits until it synchronizes the service chain until that height, and
when it's ready, it starts listening to the chain in `FullChain` mode
and removes worker A as an owner.
## Test Plan
`test_controller` was extended to reassign a service from one worker to
another, and then check if the second worker properly handles a task
request.
## Release Plan
- These changes should be backported to the latest `testnet` branch,
then
- be released in a new SDK,
## Links
- #5270
- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments