Uploaded image for project: 'MicroShift'
  1. MicroShift
  2. USHIFT-5373

Replace GenerateUniqueTempPath by Go library functions

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • 5
    • None
    • None
    • uShift Sprint 267
    • None
    • None
    • None

      Description of problem:

      The current code in GenerateUniqueTempPath function is not safe to be used in parallel because it does not create file system objects, but tests for their existence. If this function is called from different threads for the same base path, it might return the same name in more than one thread.

      Version-Release number of selected component (if applicable):

      All

      How reproducible:

      Not reproducible because the function is called from the main thread only atm. 

      Actual results:

      Using a custom function for temp file / dir creation

      Expected results:

      Using Go library functions for creating temporary file or directories. 

      Additional info:

       

              rh-ee-thalenar Timotej Halenar
              ggiguash@redhat.com Gregory Giguashvili
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: