Skip to content

When all servers in a raft cluster are offline, the client's watch requests will loop indefinitely. #6048

@funky-eyes

Description

@funky-eyes
  • I have searched the issues of this repository and believe that this is not a duplicate.

Ⅰ. 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)

  1. xxx
  2. xxx
  3. 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:

Metadata

Metadata

Assignees

Labels

type: bugCategory issues or prs related to bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions