Skip to content

10.11 mdev 38869#5169

Open
janlindstrom wants to merge 2 commits into
MariaDB:10.11from
mariadb-corporation:10.11-MDEV-38869
Open

10.11 mdev 38869#5169
janlindstrom wants to merge 2 commits into
MariaDB:10.11from
mariadb-corporation:10.11-MDEV-38869

Conversation

@janlindstrom
Copy link
Copy Markdown
Contributor

No description provided.

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ janlindstrom
❌ mariadb-DenisProtivensky
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates Galera sequence recovery tests to improve synchronization and adds a new test suite, wsrep-recover-sequences, to verify sequence recovery behavior after server crashes. The feedback suggests correcting the mysqltest syntax for an if block in wsrep-recover-sequences.test by placing the opening brace on a new line, and removing an inconsistent trailing semicolon in a wait condition query in galera_sequences_recovery.test to prevent potential parsing issues.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines +21 to +23
if ($log_bin) {
--let $wsrep_recover_binlog_opt = --log-bin
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

In mysqltest syntax, the opening curly brace { for an if block must be placed on its own line. Having it on the same line as the if condition can lead to parsing errors or unexpected behavior in some environments. Additionally, indenting the block contents improves readability.

if ($log_bin)
{
  --let $wsrep_recover_binlog_opt = --log-bin
}


--connection node_2
--echo # Wait for the next_not_cached_value = 11 FROM s (1)
--let $wait_condition = SELECT next_not_cached_value = 11 FROM s;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The trailing semicolon inside the --let $wait_condition query is inconsistent with other wait_condition definitions in this file (which do not use semicolons). Semicolons inside wait conditions can sometimes cause issues depending on how the query is evaluated or wrapped by the test framework. It is safer and more consistent to remove it.

--let $wait_condition = SELECT next_not_cached_value = 11 FROM s

mariadb-DenisProtivensky and others added 2 commits June 3, 2026 14:39
- add wsrep-auto-increment-control=OFF setting to tests' configs
so that auto-increment-{increment,offset} are used instead
- fix galera_sequences_recovery test to recover crashed node's state
before joining back the cluster; this fixes the issue with wrong
NEXTVAL() produced by the restarted node
Stabilize test using wait_conditions and forcing InnoDB checkpoint
before intentionally crashing the server.
Copy link
Copy Markdown
Contributor

@hemantdangi-gc hemantdangi-gc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants