aws / aws/aws-cli

`AWS_MAX_ATTEMPTS` has no effect with v2

Đang mở
#5,653 16 bình luận 10 reaction 0 người được giao Xem trên GitHub
configuration confusing-error documentation feature-request p2 v2
Ngôn ngữ chính
Python
Star
17.3k
Fork
4.6k
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
18

Mô tả

Confirm by changing [ ] to [x] below to ensure that it's a bug:
- [x] I've gone though the [User Guide](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html) and the [API reference](https://docs.aws.amazon.com/cli/latest/reference/)
- [x] I've searched for [previous similar issues](https://github.com/aws/aws-cli/issues) and didn't find any solution

**Describe the bug**

With the v2 CLI, the `AWS_MAX_ATTEMPTS` environment variable does not change the number of max attempts. The variable is documented to work: . It does work with the v1 CLI.

**SDK version number**

aws-cli/2.0.46 Python/3.8.5 Linux/5.4.69 source/x86_64.nixos.20

**Platform/OS/Hardware/Device**

NixOS 20.09

**To Reproduce (observed behavior)**

1. Start an S3 upload like `AWS_MAX_ATTEMPTS=10000 aws s3 cp --debug /tmp/randfile s3://my-bucket/test`
2. Disable networking
3. After about 5 minutes, observe "botocore.retries.standard - DEBUG - Retry needed but retry quota reached, not retrying request."

**Expected behavior**

Upload should continue to retry until `AWS_MAX_ATTEMPTS` attempts are made.

**Logs/output**

[aws-s3-cp.log](https://github.com/aws/aws-cli/files/5405259/aws-s3-cp.log) for `AWS_MAX_ATTEMPTS=10000 aws s3 cp --debug /tmp/randfile s3://my-bucket/test > aws-s3-cp.log 2>&1`.
See "To Reproduce" for the relevant entry.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lệnh AWS_MAX_ATTEMPTS=10000 đã được ghi trong tài liệu và xem xét aws-s3-cp.log đính kèm, đặc biệt là thông báo về hạn mức thử lại. So sánh hành vi của v2 với hành vi v1 đã nêu và tài liệu cấu hình được liên kết. Công việc được hoàn tất khi thao tác tải lên S3 của v2 tuân theo số lần thử tối đa đã cấu hình.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
aws, python
Lĩnh vực
cli, cloud
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.