Code Monkey home page Code Monkey logo

Comments (10)

carrodher avatar carrodher commented on July 21, 2024

Here you can see some notes about upgrading the chart from one major to another major, but mainly it's needed to see the upstream recommendations.

from charts.

jordanefillatre avatar jordanefillatre commented on July 21, 2024

Hello, I agreed with the need of review upstream recommendations, but the situation that I point is that the neither the helm upgrade or manual operations will allow to correctly follow them. I don't see a to restart each pod with wsrep off and run the mysql_upgrade. In my mind a an helm upgrade must allow to do this basic upgrade operation.

from charts.

jotamartos avatar jotamartos commented on July 21, 2024

Hi @jordanefillatre,

According to the documentation, "this can cause issues if you restart a non-upgraded node in a cluster where the rest of the nodes have been upgraded.". Old nodes are not expected to be restarted during the upgrade process, they will be removed and new ones will appear so this shouldn't be an issue when upgrading the Bitnami MariaDB Galera chart. Did you run into any issue we can replicate?

If you need all pods to be recreate at the same time, you can change the upgrade strategy to recreate all pods at once

https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy

You can contribute to this repo by following the contributor guidelines and the team will take care of checking the changes.

from charts.

jordanefillatre avatar jordanefillatre commented on July 21, 2024

Hi @jotamartos
I don't think that the galera protocol version last documentation note is related to the need of run mysql_upgrade with wsrep off .
I don't run into replication issue but error are logged at pod restart in new mariadb version due to unappropriate startup sequence in case of upgrade. The mysql_upgrade is not run before re enable the replication:

2024-03-19 9:01:13 46 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'hist_type' at position 9 to have type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB','JSON_HB'), found type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB'). 2024-03-19 9:01:13 46 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'histogram' at position 10 to have type longblob, found type varbinary(255).

from charts.

jotamartos avatar jotamartos commented on July 21, 2024

I just reproduced the issue when upgrading from Bitnami MariaDB Galera Chart version 7.5.5 to 8.0.0. I'll investigate if this also happens with the latest version of the chart or if it's a problem that only happens with old version of the solution.

Thanks

from charts.

jotamartos avatar jotamartos commented on July 21, 2024

Hi @jordanefillatre,

As I mentioned, I could reproduce the issue when migrating from Bitnami MariaDB Galera Chart version 7.5.5 to 8.0.0 (from MariaDB 10.6 to 10.11). However, the upgrade doesn't throw that error when migrating from Chart version 8.0.0 (fresh install) to 9.0.0 (MariaDB versions 10.11 to 11.0).

As we can't update the chart that includes MariaDB 10.11 anymore, you will need to finish the upgrade manually by running the mysql_upgrade --user=root --password=PASSWORD command in each of the nodes. That command solves the issue and the error is no longer shown in the logs.

from charts.

jordanefillatre avatar jordanefillatre commented on July 21, 2024

I can't use the 11.0 as unlike to 10.11, it's not an LTS version. Upgrading manually doesn't really solve the issue as statefulset start each mariadb cluster node with wsrep ON. If entrypoint scripts in the container image used to deploy mariadb-galera 10.11 are not maintained, the issue still impact also next 11.0 upgrades

from charts.

jotamartos avatar jotamartos commented on July 21, 2024

Upgrading manually doesn't really solve the issue as statefulset start each mariadb cluster node with wsrep ON.

Once you run the mysql_upgrade command in each node, you shouldn't get those errors anymore as the database information will be updated.

If entrypoint scripts in the container image used to deploy mariadb-galera 10.11 are not maintained, the issue still impact also next 11.0 upgrades

As I mentioned above, I upgraded from 10.11 to 11.0 and I did not get the error so this seems to be a specific upgrade instruction from 10.6. However, you can always contribute and improve the upgrade process if problem persists

https://github.com/bitnami/containers/blob/main/bitnami/mariadb-galera/11.0/debian-12/rootfs/opt/bitnami/scripts/libmariadbgalera.sh#L1140

from charts.

github-actions avatar github-actions commented on July 21, 2024

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

from charts.

github-actions avatar github-actions commented on July 21, 2024

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

from charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.