libnetwork
libnetwork copied to clipboard
Broadcast UPDATE event instead of CREATE if entry existed already
relates to https://github.com/moby/moby/issues/41896
These changes fixed the issue in my case. I added the code that forces networkdb to broadcast UPDATE event instead of CREATE if entry in database exists already. So, if TableEvent with new LTime comes from Bulk Sync, event processes as UPDATE. That helps to avoid wrong LB endpoint weight in case of a race between TCP bulk sync and UDP synchronization.
Note we have migrated this codebase over to github.com/moby/moby/libnetwork. We are not accepting PR's on this repo anymore except for backports to be included in moby 20.10