cache-dir: prevent same buildsig with different content race condition

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.0.2, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v5.0
    • Dev Platform 2021-06-28, Dev Platform 2021-07-12, Dev Platform 2021-07-26
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      A race condition has been found where two builders will push the same file to the cache at the same time with the same build sig in the cache, but have different file contents. The cachefile itself is protected from the race via the cache dir UUID tmpfile, but the content_hash file is not protected.

              Assignee:
              Daniel Moody
              Reporter:
              Daniel Moody
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: