-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent overwriting existing host_uuid file
In some circumstances, multiple Teleport processes may be trying to write the host_uuid to the same data directory at the same time. The last of the writers would win, and any process using a host UUID that did not match what was on disc could get into a perpertual state of being unable to connect to the cluster. To avoid any potential raciness, the writing of the file no longer truncates and overwrites any existing data. In the even that writes fail due to this change, the value is attempted to be read again and returned.
- Loading branch information
1 parent
ac2f8dc
commit 3d97bd2
Showing
2 changed files
with
84 additions
and
25 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
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