Skip to content

Commit

Permalink
Perform non-rate-limited migration
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravkghildiyal committed Apr 7, 2023
1 parent 29f654d commit e1c4c67
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/neg/syncers/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,12 @@ func (s *transactionSyncer) syncInternalImpl() error {
// Identification of migration endpoints should happen before we filter out
// the transaction endpoints. Not doing so could result in an attempt to
// attach an endpoint which is still undergoing detachment-due-to-migration.
findAndFilterMigrationEndpoints(addEndpoints, removeEndpoints)
_, migratingEndpointsInRemoveSet := findAndFilterMigrationEndpoints(addEndpoints, removeEndpoints)

// TODO(gauravkghildiyal): Implement rate limited migration-detachment.
for zone, endpointSet := range migratingEndpointsInRemoveSet {
removeEndpoints[zone] = removeEndpoints[zone].Union(endpointSet)
}
}

// Filter out the endpoints with existing transaction
Expand Down

0 comments on commit e1c4c67

Please sign in to comment.