mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
add debug error if there is a partial apply and refresh index isn't set
This commit is contained in:
@@ -306,6 +306,11 @@ func evaluatePlan(pool *EvaluatePool, snap *state.StateSnapshot, plan *structs.P
|
||||
mErr.Errors = append(mErr.Errors, err)
|
||||
}
|
||||
result.RefreshIndex = maxUint64(nodeIndex, allocIndex)
|
||||
|
||||
if result.RefreshIndex == 0 {
|
||||
err := fmt.Errorf("partialCommit with RefreshIndex of 0 (%d node, %d alloc)", nodeIndex, allocIndex)
|
||||
mErr.Errors = append(mErr.Errors, err)
|
||||
}
|
||||
}
|
||||
return result, mErr.ErrorOrNil()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user