Skip to content

Support Mongo's Stable API in MongoHealthIndicator #30849

@HealthPDU

Description

@HealthPDU

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-commands

Are there plans to use commands supported by the versioned api?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions