Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-13503 [Umbrella] Test sub-system improvements
  3. HIVE-18443

Ensure git gc finished in ptest prep phase before copying repo

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: Testing Infrastructure
    • Labels:
      None

      Description

      In ptest's prep phase script first we checkout the latest Hive code from git, and then we make copy of its contents (along .git folder) for that will serve as Yetus' working directory.

      In some cases we can see errors such as

      + cp -R . ../yetus
      cp: cannot stat ?./.git/gc.pid?: No such file or directory
      

      e.g. here

      This is caused by git running its gc feature in the background when our prep script has already started copying. In cases where gc finishes while cp is running, we'll get this error

        Attachments

        1. HIVE-18443.0.patch
          0.6 kB
          Ádám Szita

          Activity

            People

            • Assignee:
              szita Ádám Szita
              Reporter:
              szita Ádám Szita
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: