You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When applied invalid configuration, Cassandra pod started with cass-management-api image reports misconfiguration, but keeps running in a zombie state. When checking the running processes in the Cassandra pod, we see that the actual Cassandra server process has already exited, but the mgmt-api process is still running, serving the /health and /ready requests.
To Reproduce
We encounter this bug in the cass-management-api image when deploying the CassandraDataCenter using the cass-operator. This bug can be reproduced by first deploying the cass-operator and
Expected behavior
We expect the Cassandra container to crash after the Cassandra rejects the invalid configuration. Based on the internal error Cassandra reports, we can't configure authenticator: AllowAllAuthenticator if authorizer: CassandraAuthorizer. However, this is not mentioned in the config documentation.
The same behavior can be reproduced by removing authenticator: AllowAllAuthenticator in the CR since Cassandra defaults authenticator to be AllowAllAuthenticator.
Current behavior
The Cassandra containers are left in an zombie state where the container can be ssh-accessed but the Cassandra has already crashed. The liveness probe still returns true, the readiness probe is returning false.
Root Cause
In Cassandra's source code, having AllowAllAuthenticator and CassandraAuthenticator together causing this branch to be taken, returning the error.
However, cass-management-api does not check if the Cassandra process has existed or not, and continue to run even the Cassandra process has crashed.
Desktop (please complete the following information):
Describe the bug
When applied invalid configuration, Cassandra pod started with
cass-management-api
image reports misconfiguration, but keeps running in a zombie state. When checking the running processes in the Cassandra pod, we see that the actual Cassandra server process has already exited, but the mgmt-api process is still running, serving the /health and /ready requests.To Reproduce
We encounter this bug in the
cass-management-api
image when deploying the CassandraDataCenter using the cass-operator. This bug can be reproduced by first deploying the cass-operator andExpected behavior
We expect the Cassandra container to crash after the Cassandra rejects the invalid configuration. Based on the internal error Cassandra reports, we can't configure
authenticator: AllowAllAuthenticator
ifauthorizer: CassandraAuthorizer
. However, this is not mentioned in the config documentation.The same behavior can be reproduced by removing
authenticator: AllowAllAuthenticator
in the CR since Cassandra defaultsauthenticator
to beAllowAllAuthenticator
.Current behavior
The Cassandra containers are left in an zombie state where the container can be ssh-accessed but the Cassandra has already crashed. The liveness probe still returns true, the readiness probe is returning false.
Root Cause
In Cassandra's source code, having
AllowAllAuthenticator
andCassandraAuthenticator
together causing this branch to be taken, returning the error.However, cass-management-api does not check if the Cassandra process has existed or not, and continue to run even the Cassandra process has crashed.
Desktop (please complete the following information):
OS: Ubuntu 22.04
Browser [e.g. chrome, safari]
Reproduced on latest release v0.8.3
┆Issue is synchronized with this Jira Story by Unito
┆Issue Number: MAPI-62
The text was updated successfully, but these errors were encountered: