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.shindex 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}" ]; thenexit 1fi+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=$1shift@@ -97,14 +93,16 @@ download_files() {GET /packages/${BINTRAY_REPOSITORY}/${target}-rc/versions/${version_name}/files | \jq -r ".[].path")+ local filefor file in ${files}; domkdir -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; domv ${version}-rc${rc} ${version}fifor file in $(find . -type f); do- upload_file ${version} ${target} ${file}+ upload_file ${version} ${target} ${file} &done+ waitpopdpopdrm -rf ${tmp_dir}