forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
125441: roachprod: lock dns records by name r=renatolabs a=herkolategan Previously, the lower level DNS implementation had no internal protection against concurrently modifying the same SRV record entry. This was because from a use case perspective this should never happen as we generally don't query and register services at the same time. This could however cause several race conditions, and it should be protected against. This change locks records based on the record that is being modified. It allows concurrent modification of different records, but will lock on record name to prevent querying and modifying the same record at any point, at least for this process. Epic: None Release Note: None Co-authored-by: Herko Lategan <[email protected]>
- Loading branch information
Showing
1 changed file
with
105 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters