When using the Bitnami MariaDB helm chart, connection drops may be observed.
On the application side, the errors look like this:
Caused by: java.io.EOFException: unexpected end of stream, read 0 bytes from 4 (socket was closed by server)
The corresponding entry appears in the MariaDB log:
[Warning] Aborted connection 14784 to db: ‘test’ user: 'test' host: ‘<ip>’ (Got an error reading communication packets)
Bitnami MariaDB Galera Helm chart
The "aborted connection" message usually means the TCP session ended while MariaDB was still reading or writing protocol data—often because the client closed abruptly, a proxy or idle timeout cut the connection, or the server dropped the session under load.
In order to mitigate this, you may need to tweak some of the default MariaDB settings under the mariaDBConfiguration value:
Depending on the nature of your applications, you may need to tweak these values, as well as adjusting the resources assigned to each mariadb-galera pod, which can be configured under the resources values. This is something that will need to be adapted to your production needs, after performing extensive testing.