You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ga...@apache.org on 2018/01/18 17:55:50 UTC
[30/70] [abbrv] hive git commit: HIVE-18443: Ensure git gc finished
in ptest prep phase before copying repo (Adam Szita, via Peter Vary)
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