Merge pull request #11760 from keynslug/fix/EMQX-11149/no-aggr-healthcheck

fix(cass): avoid using aggregates in healthcheck query
This commit is contained in:
Andrew Mayorov 2023-10-13 21:03:15 +07:00 committed by GitHub
commit d59747a011
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{application, emqx_bridge_cassandra, [ {application, emqx_bridge_cassandra, [
{description, "EMQX Enterprise Cassandra Bridge"}, {description, "EMQX Enterprise Cassandra Bridge"},
{vsn, "0.1.4"}, {vsn, "0.1.5"},
{registered, []}, {registered, []},
{applications, [ {applications, [
kernel, kernel,

View File

@ -332,7 +332,7 @@ on_get_status(_InstId, #{pool_name := PoolName} = State) ->
end. end.
do_get_status(Conn) -> do_get_status(Conn) ->
ok == element(1, ecql:query(Conn, "SELECT count(1) AS T FROM system.local")). ok == element(1, ecql:query(Conn, "SELECT cluster_name FROM system.local")).
do_check_prepares(#{prepare_cql := Prepares}) when is_map(Prepares) -> do_check_prepares(#{prepare_cql := Prepares}) when is_map(Prepares) ->
ok; ok;

View File

@ -0,0 +1 @@
Simplified the CQL query employed for Cassandra bridge health check that was apparently the source of warnings in Cassandra server logs.