HIVE-18443: Ensure git gc finished in ptest prep phase before copying repo (Adam Szita, via Peter Vary)
Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/6938fcab Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/6938fcab Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/6938fcab Branch: refs/heads/standalone-metastore Commit: 6938fcabf0944817fed8241c48b57fb3f5d98c69 Parents: b826072 Author: Peter Vary <pv...@cloudera.com> Authored: Mon Jan 15 11:01:59 2018 +0100 Committer: Peter Vary <pv...@cloudera.com> Committed: Mon Jan 15 11:01:59 2018 +0100 ---------------------------------------------------------------------- testutils/ptest2/src/main/resources/source-prep.vm | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/6938fcab/testutils/ptest2/src/main/resources/source-prep.vm ---------------------------------------------------------------------- diff --git a/testutils/ptest2/src/main/resources/source-prep.vm b/testutils/ptest2/src/main/resources/source-prep.vm index 5820731..d8dd202 100644 --- a/testutils/ptest2/src/main/resources/source-prep.vm +++ b/testutils/ptest2/src/main/resources/source-prep.vm @@ -80,6 +80,8 @@ cd $workingDir/ fi rm -rf ../yetus mkdir ../yetus + #Wait until git gc finishes in the background before proceeding: + while ! git gc 2>/dev/null; do sleep 1s ; done cp -R . ../yetus mkdir $logDir/yetus patchCommandPath=$workingDir/scratch/smart-apply-patch.sh