fog-openstack icon indicating copy to clipboard operation
fog-openstack copied to clipboard

Auto Retry (Idempotency requests)

Open gildub opened this issue 7 years ago • 10 comments

Auto Retry option for all services

Auto Retry is off by default but can be turned on with :idempotent option. Default values are :retry_limit => 2 and :retry_interval => 5 (seconds)

Only GET and DELETE REST verbs are used for auto retry. More verbs can be added if that make sense.

Addresses https://github.com/fog/fog-openstack/issues/453

gildub avatar Nov 02 '18 12:11 gildub

Build succeeded.

theopenlab-ci[bot] avatar Nov 02 '18 13:11 theopenlab-ci[bot]

Build succeeded.

theopenlab-ci[bot] avatar Mar 20 '19 08:03 theopenlab-ci[bot]

Build succeeded.

theopenlab-ci[bot] avatar Mar 20 '19 09:03 theopenlab-ci[bot]

Build succeeded.

theopenlab-ci[bot] avatar Mar 21 '19 09:03 theopenlab-ci[bot]

@gildub Hi Gilles, I know it is late, but I'm happy merging this PR when the https://github.com/fog/fog-openstack/pull/462/conflicts gets resolved.

aufi avatar Feb 12 '20 13:02 aufi

@aufi, Hi Marek, sorry for slow response. I've addressed conflict. Thanks!

gildub avatar Apr 08 '20 20:04 gildub

Build succeeded.

theopenlab-ci[bot] avatar Apr 08 '20 20:04 theopenlab-ci[bot]

@aufi any chance to merge this into the master? The Swift service used by our company is pretty unreliable and this should solve that issue.

PatrickFranken avatar May 12 '21 05:05 PatrickFranken

@ShamoX this seems as a good and safe addition and ready to get in. Of course tests are missing, what is your preference here?

ares avatar Feb 04 '22 09:02 ares

Yes, tests are missing. I don't really see how we can tests this except by implementing a complexe request/response scenario, which seems not easy to implement with VCRs (maybe with a sort of interaction with doubles - but seems really complicated).

Anyway, I can review it more precisely when I have more time and see if I can catch any statically analysable bad behaviours. But I doubt it.

We should at least test new configuration variables to see if they are used.

ShamoX avatar Feb 04 '22 13:02 ShamoX