Ⅰ. Issue Description
当server在raft模式下全部宕机时,客户端将会无限循环尝试watch,但是最终都失败,因为内层的dopost方式将io异常catch了,导致无法sleep 1s
When the servers are all down in draft mode, the client will try to watch in an infinite loop, but eventually fail because the inner dopost method catches the io exceptions, making it impossible to sleep for 1s.
Ⅱ. Describe what happened
If there is an exception, please attach the exception trace:
Just paste your stack trace here!
Ⅲ. Describe what you expected to happen
Ⅳ. How to reproduce it (as minimally and precisely as possible)
- xxx
- xxx
- xxx
Minimal yet complete reproducer code (or URL to code):
Ⅴ. Anything else we need to know?
Ⅵ. Environment:
- JDK version(e.g.
java -version):
- Seata client/server version:
- Database version:
- OS(e.g.
uname -a):
- Others: