backport of commit f25480c9e929c27476c8930f05832e8b96167660 (#18341)
Co-authored-by: stswidwinski <stan.swidwinski@gmail.com>
This commit is contained in:
parent
3730b66d8c
commit
d8ff618c40
|
@ -0,0 +1,3 @@
|
||||||
|
```release-note:bug
|
||||||
|
client: Ignore stale server updates to prevent GCing allocations that should be running
|
||||||
|
```
|
|
@ -2332,6 +2332,18 @@ OUTER:
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We have not received any new data, or received stale data. This may happen in
|
||||||
|
// an array of situations, the worst of which seems to be a blocking request
|
||||||
|
// timeout when the scheduler which we are contacting is newly added or recovering
|
||||||
|
// after a prolonged downtime.
|
||||||
|
//
|
||||||
|
// For full context, please see https://github.com/hashicorp/nomad/issues/18267
|
||||||
|
if resp.Index <= req.MinQueryIndex {
|
||||||
|
c.logger.Debug("Received stale allocation information. Retrying.",
|
||||||
|
"index", resp.Index, "min_index", req.MinQueryIndex)
|
||||||
|
continue OUTER
|
||||||
|
}
|
||||||
|
|
||||||
// Filter all allocations whose AllocModifyIndex was not incremented.
|
// Filter all allocations whose AllocModifyIndex was not incremented.
|
||||||
// These are the allocations who have either not been updated, or whose
|
// These are the allocations who have either not been updated, or whose
|
||||||
// updates are a result of the client sending an update for the alloc.
|
// updates are a result of the client sending an update for the alloc.
|
||||||
|
|
Loading…
Reference in New Issue