Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added restriction on the max number of retries are allowed #69

Open
wants to merge 34 commits into
base: master
Choose a base branch
from

Conversation

chainone
Copy link
Contributor

@chainone chainone commented Aug 13, 2016

  1. Added restriction on the max number of retries allowed.
    As the requests to Aliyun is so fast so that, without this restriction, if the request fails, it will retry 25 times in no more than 5 seconds. This is just too many.
    Please be aware that:
    The machine launches those requests is outside of Aliyun. It is expected to have more reties inside Aliyun.
  2. Propose to change the "Min" value from 5 to 2, and change Total from 5 seconds to 3 seconds. I think this is more reasonable

ChangHai Yan and others added 30 commits July 8, 2016 15:09
Change-Id: Ic66209a3e4879a0143f298e608251cfb145bad80
Change-Id: Id4853c7f15da42798708e004916c22b702825b54
2. Various enhancements and bug fixings
Moved role test to a separate package: role_test
Revert "Moved role test to a separate package: role_test"
2. list policies for roles
3. added corresponding unit tests
1. added support for attaching/detaching policies to/from roles
Added STS support with unit tests
Change-Id: Id7b6a642d9570af6ebbdab76b85de484efa533c1
2. Removed config file, instead, use environment variables to unit test
  1. Set your AccessKeyId and AccessKeySecret in env
		simply use the command below:
			"AccessKeyId=YourAccessKeyId AccessKeySecret=YourAccessKeySecret go test"

 2. Replace "MY_ACCESS_KEY_ID" & "MY_ACCESS_KEY_SECRET" with your own access key & secret and run "go test"
denverdino and others added 4 commits August 12, 2016 23:23
Get Bucket Info API support to oss
    As the requests to Aliyun is so fast so that, without this restriction, if the request fails, it will retry 25 times in no more than 5 seconds. This is not too many.
Please be aware that:
   The machine launches those requests is outside of Aliyun. It is expected to have more reties inside Aliyun.

2. Propose to change the "Min" value from 5 to 2, and change Total from 5 seconds to 3 seconds. I think this is more reasonable
@denverdino
Copy link
Owner

I hesitate to accept this change, you can control the max retry with the total duration.
Maybe, we can have one method to allow customer to set the default attempts, your thought?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants