diff options
author | nharmata <nharmata@google.com> | 2018-01-30 09:27:36 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-01-30 09:29:09 -0800 |
commit | 747d8cdbcbca6c94847bff20e231a15709e2cb95 (patch) | |
tree | fc140e31b3c4793fd02467c0e54f58f04b916a41 /third_party/plexus_interpolation | |
parent | 47c04a127e918b7c98446dd9b7076a0c1970e578 (diff) |
Bazel client: address very subtle race condition during self extraction.
Fail fast if we are about extract the Bazel binary for version V into the predetermined install_base directory for version V'. This fixes Bazel's weakness to a race condition that puts it in a stable inconsistent state where all current and future attempts to use Bazel at version V will actually use V'. A rerun of the Bazel client will be able to successfully use version V'.
This race condition occurs when the Bazel binary is replaced after determine the install directory (via the install_base_key file in the Bazel zip) but before we extract the files in the zip into the directory.
RELNOTES: None
PiperOrigin-RevId: 183843099
Diffstat (limited to 'third_party/plexus_interpolation')
0 files changed, 0 insertions, 0 deletions