This repository was archived by the owner on Jul 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 171
In the yaml, if rsocket.brokers is list, RSocketBrokerHealthIndicator is not registered. #239
Copy link
Copy link
Open
Description
Describe the bug
In the yaml, if rsocket.brokers is a list, then RSocketBrokerHealthIndicator is not registered.
rsocket:
brokers:
- tcp://localhost:9999If it is a string, then RSocketBrokerHealthIndicator is registered.
rsocket:
brokers: tcp://localhost:9999Environment
- Alibaba RSocket Broker version: 1.1.5
- Operating System version: Mac
- Java version: 17
Steps to reproduce this issue
- set rsocket.brokers to list
rsocket: brokers: - tcp://localhost:9999 management: endpoint: health: show-details: always
- bootRun
- open
http://localhost:8080/actuator/health
Pls. provide GitHub address to reproduce this issue.
Line 166 in fdd39b3
| @ConditionalOnProperty("rsocket.brokers") |
Expected Result
{
"status": "DOWN",
"components": {
"mongo": {
"status": "UP",
"details": {
"maxWireVersion": 17
}
},
"ping": {
"status": "UP"
},
"r2dbc": {
"status": "UP",
"details": {
"database": "MariaDB",
"validationQuery": "validate(REMOTE)"
}
},
"rsocketBrokerHealth": {
"status": "DOWN",
"details": {
"brokers": "tcp://localhost:9999"
}
}
}
}Actual Result
{
"status": "UP",
"components": {
"mongo": {
"status": "UP",
"details": {
"maxWireVersion": 17
}
},
"ping": {
"status": "UP"
},
"r2dbc": {
"status": "UP",
"details": {
"database": "MariaDB",
"validationQuery": "validate(REMOTE)"
}
}
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels