maria:bb-10.4-mdev-31361

Last commit made on 2024-02-03
Get this branch:
git clone -b bb-10.4-mdev-31361 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.4-mdev-31361
Repository:
lp:maria

Recent commits

a8217d7... by Igor Babaev

MDEV-31361 Wrong result on 2nd execution of PS for query with derived table

This bug led to wrong result sets returned by the second execution of
prepared statements from selects using mergeable derived tables pushed
into external engine. Such derived tables are always materialized. The
decision that they have to be materialized is taken late in the function
mysql_derived_optimized(). For regular derived tables this decision is
usually taken at the prepare phase. However in some cases for some derived
tables this decision is made in mysql_derived_optimized() too. It can be
seen in the code of mysql_derived_fill() that for such a derived table it's
critical to change its translation table to tune it to the fields of the
temporary table used for materialization of the derived table and this
must be done after each refill of the derived table. The same actions are
needed for derived tables pushed into external engines.

Approved by Oleksandr Byelkin <email address hidden>

05314ed... by Igor Babaev

MDEV-31305 Crash caused by query with aggregation over materialized derived

This bug was fixed by the patch for bug MDEV-30706.
Only a test case is added in this commit.

f4ee7c1... by Denis Protivensky <email address hidden>

MDEV-22232 Fix test after changing behavior of ALTER DROP FOREIGN KEY

Signed-off-by: Julius Goryavsky <email address hidden>

b7d1f65... by Marko Mäkelä

MDEV-12266 fixup: Remove dead code

Ever since commit 5e84ea9634ac491f3da84f6c15987d4c1b1a5a3a
this "else if" branch was unreachable because the preceding
"if" condition covered it.

bc28495... by Marko Mäkelä

MDEV-33251 Redundant check on prebuilt::n_rows_fetched overflow

row_search_mvcc(): Revise an overflow check, disabling it on 64-bit
systems. The maximum number of consecutive record reads in a key range
scan should be limited by the maximum number of records per page
(less than 2^13) and the maximum number of pages per tablespace (2^32)
to less than 2^45. On 32-bit systems we can simplify the overflow check.

Reviewed by: Vladislav Lesin

57ffcd6... by Monty <email address hidden>

MDEV-21472: ALTER TABLE ... ANALYZE PARTITION ... with EITS reads and locks all rows

This was fixed in 10.2 in 2020 but merging the code to 10.3 caused the
bug to come back.

f8fa3c5... by =?utf-8?q?Jan_Lindstr=C3=B6m?= <email address hidden>

MDEV-33173 : Galera test case galera_sr_kill_slave_before_apply unstable

Add wait_condition to make sure tables are created before next
operations.

Signed-off-by: Julius Goryavsky <email address hidden>

ddb27a2... by =?utf-8?q?Jan_Lindstr=C3=B6m?= <email address hidden>

MDEV-33172 : Galera test case galera_mdl_race unstable

Add wait_condition between debug sync SIGNAL points and other
expected state conditions and refactor actual sync point for
easier to use in test case.

Signed-off-by: Julius Goryavsky <email address hidden>

5b4456b... by =?utf-8?q?Jan_Lindstr=C3=B6m?= <email address hidden>

MDEV-33036 : Galera test case galera_3nodes.galera_ist_gcache_rollover has warning

Correct used configuration and force server restarts before test
case. Add wait condition instead of sleep to verify that
all expected nodes are back to cluster.

Signed-off-by: Julius Goryavsky <email address hidden>

49fa5f6... by =?utf-8?q?Jan_Lindstr=C3=B6m?= <email address hidden>

MDEV-33138 : Galera test case MW-336 unstable

Add more inserts before wsrep_slave_threads is set to 1 and
add wait_condition to wait all of them are replicated before
wait_condition about number of wsrep_slave_threads.

Signed-off-by: Julius Goryavsky <email address hidden>