From 19ba51391069129e355ba936298e40bbb247f76d Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Thu, 17 Oct 2024 11:07:54 +0900 Subject: [PATCH] GH-44449: [Release] Retry on HTTP error in binary upload --- dev/release/binary-task.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev/release/binary-task.rb b/dev/release/binary-task.rb index b06b1c46b8504..4387641741d15 100644 --- a/dev/release/binary-task.rb +++ b/dev/release/binary-task.rb @@ -532,7 +532,8 @@ def with_retry(max_n_retries, target) OpenSSL::OpenSSLError, SocketError, SystemCallError, - Timeout::Error => error + Timeout::Error, + Error => error n_retries += 1 if n_retries <= max_n_retries $stderr.puts