Commit cb51a28 1 parent 12f1ff5 commit cb51a28 Copy full SHA for cb51a28
File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -415,6 +415,12 @@ func (s *GenericScheduler) computeJobAllocs() error {
415
415
s .plan .AppendUnknownAlloc (update )
416
416
}
417
417
418
+ // Handle reconnect updates.
419
+ // Reconnected allocs have a new AllocState entry.
420
+ for _ , update := range results .reconnectUpdates {
421
+ s .ctx .Plan ().AppendAlloc (update , nil )
422
+ }
423
+
418
424
// Handle the in-place updates
419
425
for _ , update := range results .inplaceUpdate {
420
426
if update .DeploymentID != s .deployment .GetID () {
Original file line number Diff line number Diff line change @@ -1206,7 +1206,7 @@ func (a *allocReconciler) computeReconnecting(reconnecting allocSet) {
1206
1206
// Use a copy to prevent mutating the object from statestore.
1207
1207
reconnectedAlloc := alloc .Copy ()
1208
1208
reconnectedAlloc .AppendState (structs .AllocStateFieldClientStatus , alloc .ClientStatus )
1209
- a .result .reconnectUpdates [alloc .ID ] = reconnectedAlloc
1209
+ a .result .reconnectUpdates [reconnectedAlloc .ID ] = reconnectedAlloc
1210
1210
}
1211
1211
}
1212
1212
You can’t perform that action at this time.
0 commit comments