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:
commit
d59747a011
|
@ -1,6 +1,6 @@
|
|||
{application, emqx_bridge_cassandra, [
|
||||
{description, "EMQX Enterprise Cassandra Bridge"},
|
||||
{vsn, "0.1.4"},
|
||||
{vsn, "0.1.5"},
|
||||
{registered, []},
|
||||
{applications, [
|
||||
kernel,
|
||||
|
|
|
@ -332,7 +332,7 @@ on_get_status(_InstId, #{pool_name := PoolName} = State) ->
|
|||
end.
|
||||
|
||||
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) ->
|
||||
ok;
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Simplified the CQL query employed for Cassandra bridge health check that was apparently the source of warnings in Cassandra server logs.
|
Loading…
Reference in New Issue