zoneAwareResultTracker tracks the results per zone. All instances in a zone must succeed in order for the zone to succeed.
| 88 | // zoneAwareResultTracker tracks the results per zone. |
| 89 | // All instances in a zone must succeed in order for the zone to succeed. |
| 90 | type zoneAwareResultTracker struct { |
| 91 | waitingByZone map[string]int |
| 92 | failuresByZone map[string]int |
| 93 | minSuccessfulZones int |
| 94 | maxUnavailableZones int |
| 95 | resultsPerZone map[string][]any |
| 96 | numInstances int |
| 97 | zoneResultsQuorum bool |
| 98 | zoneCount int |
| 99 | doneCount int |
| 100 | errors []error |
| 101 | } |
| 102 | |
| 103 | func newZoneAwareResultTracker(instances []InstanceDesc, maxUnavailableZones int, zoneResultsQuorum bool) *zoneAwareResultTracker { |
| 104 | t := &zoneAwareResultTracker{ |
nothing calls this directly
no outgoing calls
no test coverage detected