Skip to content

Commit 9255e55

Browse files
author
YangSen-qn
committed
change list bucket retry condition
1 parent 6d6c44d commit 9255e55

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

iqshell/storage/bucket/list.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,15 @@ func List(info ListApiInfo,
201201
if workspace.IsCmdInterrupt() || // 取消
202202
strings.Contains(lErr.Error(), "no such bucket") || // 空间不存在,直接结束
203203
strings.Contains(lErr.Error(), "incorrect zone") || // 空间不正确
204+
strings.Contains(lErr.Error(), "query region error") || // 查询空间错误
205+
strings.Contains(lErr.Error(), "app/accesskey is not found") || // AK/SK 错误
204206
strings.Contains(lErr.Error(), "invalid list limit") || // api v1 list limit
205207
strings.Contains(lErr.Error(), "context canceled") { // 取消
206208
break
207209
}
208210

209211
retryCount++
210-
time.Sleep(time.Millisecond * 100)
212+
time.Sleep(time.Millisecond * 500)
211213
continue
212214
}
213215

0 commit comments

Comments
 (0)