New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Mongo's Stable API in MongoHealthIndicator #30849
Comments
Are you aware of a command in the stable API that can act as a replacement for |
spring-boot-actuator
- MongoDB versioned API
There is no command in the stable API that provides the server version. The closest would be the |
Assuming that If someone wants to use the stable API with 2.x we suggest that they write their own |
The |
Keeping the issue open to remind me to update the release notes. |
Hi,
We are using Mongo 5.0 and have implemented their stable-api. We now find the Mongo health-check no longer works and reports the following error ->
error 323 (APIStrictError): 'Provided apiStrict:true, but the command buildInfo is not in API Version 1.
On closer inspection, the class uses the
buildinfo
command (https://github.com/spring-projects/spring-boot/blob/main/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/mongo/MongoHealthIndicator.java) and this is not supported in Mongo's versioned api -> https://www.mongodb.com/docs/manual/reference/stable-api/#api-v1-commandsAre there plans to use commands supported by the versioned api?
The text was updated successfully, but these errors were encountered: