OkToRetryOnAllOperations doesn't work. Post request can't be retried.
oaHeZgnoS opened this issue · 0 comments
oaHeZgnoS commented
My env:
SpringBoot 2.1.3, SpringCloud Greenwich.SR2, jdk1.8.
My configuration:
ribbon.restclient.enabled=true
#开启重试机制 spring.cloud.loadbalancer.retry.enabled=true
#请求连接的超时时间 spider-source.ribbon.ConnectTimeout=250 hystrix.command.default.execution.isolation.thread.timeoutinMilliseconds=8000
#请求处理的超时时间 spider-source.ribbon.ReadTimeout=3000
#对所有操作请求都进行重试,默认false,只有get请求会重试
spider-source.ribbon.OkToRetryOnAllOperations=true
#指定请求重试开关,该属性未被使用,疑似bug #spider-source.ribbon.RequestSpecificRetryOn=true
#对当前实例的重试次数
#spider-source.ribbon.MaxAutoRetries=3
#切换实例的重试次数 spider-source.ribbon.MaxAutoRetriesNextServer=1
Get request can be retried. Post can't be retried.
Please help.
Whether Separating from eureka alone using Ribbon, or using in SpringCloud's zuul, get request can be retried and post can't be retried.