(Translated by https://www.hiragana.jp/)
MDEV-32631 : galera_2_cluster: before_rollback(): Assertion `0' failed by janlindstrom · Pull Request #3548 · MariaDB/server · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDEV-32631 : galera_2_cluster: before_rollback(): Assertion `0' failed #3548

Open
wants to merge 1 commit into
base: 10.5
Choose a base branch
from

Conversation

janlindstrom
Copy link
Contributor

  • The Jira issue number for this PR is: MDEV-32631

Description

Test case changes only. Add wait_conditions to make sure nodes rejoin the cluster. Assertion itself should not be possible anymore as we do not allow sequences on Aria tables.

Release Notes

TODO: What should the release notes say about this change?
Include any changed system variables, status variables or behaviour. Optionally list any https://mariadb.com/kb/ pages that need changing.

How can this PR be tested?

TODO: modify the automated test suite to verify that the PR causes MariaDB to behave as intended.
Consult the documentation on "Writing good test cases".

If the changes are not amenable to automated testing, please explain why not and carefully describe how to test manually.

Basing the PR against the correct MariaDB version

  • This is a new feature or a refactoring, and the PR is based against the main branch.
  • [x ] This is a bug fix, and the PR is based against the earliest maintained branch in which the bug can be reproduced.

PR quality check

  • [ x] I checked the CODING_STANDARDS.md file and my PR conforms to this where appropriate.
  • [ x] For any trivial modifications to the PR, I am ok with the reviewer making the changes themselves.

Test case changes only. Add wait_conditions to make sure
nodes rejoin the cluster. Assertion itself should not be
possible anymore as we do not allow sequences on
Aria tables.
@janlindstrom janlindstrom added the Codership Codership Galera label Sep 24, 2024
@sysprg
Copy link
Contributor

sysprg commented Sep 30, 2024

@janlindstrom Thanks for fixes for complex tests, but the fix does not include changes to the wsrep inserts or library code, it only includes changes to the tests - yes, this will solve the problems with the tests by bypassing the problematic scenario, but it will not fix anything for the user - if the user performs actions as in the original test, he will get a crash on assertion instead of a diagnostic telling him what he did wrong. The user should always get diagnostics clearly showing him what he is doing wrong, without crashing on assertion. Therefore, I am returning the pull request to you for revision. Please return it to me after adding some checks in the code that give diagnostics and avoid subsequent crash in the assertion form, or an explanation why it is impossible/very problematic to add such a check.

@sysprg sysprg assigned janlindstrom and unassigned sysprg Sep 30, 2024
@janlindstrom
Copy link
Contributor Author

@sysprg Problem is that this test does not reproduce the crash not when it is unchanged. I did small changes to make it pass as there was one timeout. If I correctly remember assertion can happen if you have MyISAM changes inside a transaction, this can't anymore happen because (1) we run so that mysql.gtid_slave_pos table is InnoDB as it is on release binaries and (2) because multi-engine changes containing non-transactional engines are now restricted on Galera. Therefore, there is nothing to be fixed on server code or in library code in this case.

@janlindstrom janlindstrom assigned sysprg and unassigned janlindstrom Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Codership Codership Galera
Development

Successfully merging this pull request may close these issues.

2 participants