kube-arangodb icon indicating copy to clipboard operation
kube-arangodb copied to clipboard

Operator continuously logs in "Cluster expected, found SINGLE server"

Open duduz opened this issue 3 years ago • 3 comments

Operator version is v1.2.15 Using 2 singles, Both ArangoDeployment objects clearly state mode: Single

However, the following line keeps showing in the log:

2022-07-24T11:08:25Z INF Health of the cluster is missing error="Cluster expected, found SINGLE server" name=leader namespace=kube-arangodb operator-id=cht6q section=members

and it shows for the follower as well.

2022-07-24T11:08:26Z INF Health of the cluster is missing error="Cluster expected, found SINGLE server" name=follower namespace=kube-arangodb operator-id=cht6q section=members

I guess this shows due to a missing health check, however, there are no issues with the singles.

This part of the the code clearly state that it is not meant to be used with Singles. https://github.com/arangodb/go-driver/blob/48efb9f1148f9d7b3e38d3cd2f50743188a744e6/client_cluster_impl.go#L39

Thanks!

duduz avatar Jul 24 '22 11:07 duduz

Hello!

We will skip this check in ClusterState. This shouldn't be logged on the Info level.

Best Regards, Adam.

ajanikow avatar Jul 24 '22 17:07 ajanikow

Fixed on master

ajanikow avatar Aug 02 '22 12:08 ajanikow

Thank you @ajanikow 👍

duduz avatar Aug 02 '22 12:08 duduz