Azure / Azure/azure-sdk-for-java
[BUG]Replica health status is Connected when there is 0 connections
Open
Cosmos
cosmos-java-ecosystem-se-planning
cosmos:v4-item
- Dominant language
- Java
- Stars
- 2.6k
- Forks
- 2.2k
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 178
Description
Replica health status is connected when there is 0 connections. Two possibilities:
1. Due to the idleEndpoint config, the connection has been closed
2. Currently, for an idle connection, SDK only mark replica as unhealthy if the connection has been closed gracefully (FIN signal), if the connection has been closed unexpectedly, then SDK ignores it.
Proposal:
Mark replica as unhealthy if the connection is being closed unexpected. Needs test to verify.
Contributor guide
Assessment
This issue has not been assessed yet.