Skip to content

Apache DataFusion SQL Query Engine

ARROW-5076: [Release] Improve post binary upload performance

Kouhei Sutou2e42e6dfdb83
diff --git a/dev/release/post-02-binary.sh b/dev/release/post-02-binary.sh
index 1a61c9a187..cdff1db0ab 100755
--- a/dev/release/post-02-binary.sh
+++ b/dev/release/post-02-binary.sh
@@ -36,19 +36,15 @@ if [ -z "${BINTRAY_PASSWORD}" ]; then
exit 1
fi
+if ! jq --help > /dev/null 2>&1; then
+ echo "jq is required"
+ exit 1
+fi
+
: ${BINTRAY_REPOSITORY:=apache/arrow}
docker_image_name=apache-arrow/release-binary
-jq() {
- docker \
- run \
- --rm \
- --interactive \
- ${docker_image_name} \
- jq "$@"
-}
-
bintray() {
local command=$1
shift
@@ -97,14 +93,16 @@ download_files() {
GET /packages/${BINTRAY_REPOSITORY}/${target}-rc/versions/${version_name}/files | \
jq -r ".[].path")
+ local file
for file in ${files}; do
mkdir -p "$(dirname ${file})"
curl \
--fail \
--location \
--output ${file} \
- https://dl.bintray.com/${BINTRAY_REPOSITORY}/${file}
+ https://dl.bintray.com/${BINTRAY_REPOSITORY}/${file} &
done
+ wait
}
delete_file() {
@@ -154,8 +152,9 @@ for target in debian ubuntu centos python; do
mv ${version}-rc${rc} ${version}
fi
for file in $(find . -type f); do
- upload_file ${version} ${target} ${file}
+ upload_file ${version} ${target} ${file} &
done
+ wait
popd
popd
rm -rf ${tmp_dir}