Fix zuul post retry (#2209)

Modfied RibbonCommandContext to make request entity resettable. fixes gh-892
This commit is contained in:
Andre Dörnbrack
2017-09-25 19:59:31 +02:00
committed by Ryan Baxter
parent 145b7ce69a
commit 05a3db3cc0
4 changed files with 177 additions and 26 deletions

View File

@@ -2685,6 +2685,9 @@ certain Ribbon properties. The properties you can use are
`client.ribbon.OkToRetryOnAllOperations`. See the https://github.com/Netflix/ribbon/wiki/Getting-Started#the-properties-file-sample-clientproperties[Ribbon documentation]
for a description of what there properties do.
WARNING: Enabling `client.ribbon.OkToRetryOnAllOperations` includes retring POST requests wich can have a impact
on the server's resources due to the buffering of the request's body.
In addition you may want to retry requests when certain status codes are returned in the
response. You can list the response codes you would like the Ribbon client to retry using the
property `clientName.ribbon.retryableStatusCodes`. For example