Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-61358

validate cachedir incorrectly re-raising InvalidChecksum

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0, 5.1.2, 5.0.6
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v5.1, v5.0
    • Dev Platform 2021-11-15
    • 29

      The validate cachedir has a try-except block around a file being removed out from under it. It catches this case and should just return a state of non retrieval from the cache, and the build should be able to continue to success.

       

      However an incorrect use of the 'finally' causes an exception to be re-raised during the normal handling of the original exception in the try-except block. This finally should be an else block instead.

            Assignee:
            daniel.moody@mongodb.com Daniel Moody
            Reporter:
            daniel.moody@mongodb.com Daniel Moody
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: