Skip to content

CassandraHealthIndicator runs a query that fails on some Consistency Levels #17768

@ankit--sethi

Description

@ankit--sethi

My team has recently decided to move from a default READ consistency level of LOCAL_QUORUM to THREE. After this change, the CassandraHealthIndicator can no longer execute the query below successfully. I'm wondering if there's a better test query that could work at all Consistency Levels?

@Override
protected void doHealthCheck(Health.Builder builder) throws Exception {
	Select select = QueryBuilder.select("release_version").from("system", "local");
	ResultSet results = this.cassandraOperations.getCqlOperations().queryForResultSet(select);

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededAn issue that has been superseded by anothertype: bugA general bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions