Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-4215

Butler: SafeFile and SafeFileName can overwrite good with bad in some cases

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Won't Fix
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: butler
    • Labels:
      None

      Description

      A bad file can be written in Butler, in the case where 2 temp files that use SafeFile or SafeFileName to the same location are started, one closes, and then the other fails - and then closes and writes the bad file. Need to handle the exception in a way that does not write.

      Also, in the case of no exception (failure), when closing B, need to compare to A and throw if different.

        Attachments

          Issue Links

            Activity

            Hide
            price Paul Price added a comment -

            Just need to convert the finally to an else?

            Show
            price Paul Price added a comment - Just need to convert the finally to an else ?
            Hide
            npease Nate Pease [X] (Inactive) added a comment -

            It's not that clear to me, I don't have my head entirely around it. It could be that simple. Anyway, this expresses the problem and when I can I can sort out the solution

            Show
            npease Nate Pease [X] (Inactive) added a comment - It's not that clear to me, I don't have my head entirely around it. It could be that simple. Anyway, this expresses the problem and when I can I can sort out the solution
            Hide
            tjenness Tim Jenness added a comment -

            Gen2 is dead.

            Show
            tjenness Tim Jenness added a comment - Gen2 is dead.

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              npease Nate Pease [X] (Inactive)
              Watchers:
              Nate Pease [X] (Inactive), Paul Price, Tim Jenness
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.