Skip to content
/ server Public

MDEV-38195: Fix flaky events_restart and tmp_space_usage tests#4753

Open
varundeepsaini wants to merge 1 commit intoMariaDB:mainfrom
varundeepsaini:MDEV-38195-fix-flaky-tests
Open

MDEV-38195: Fix flaky events_restart and tmp_space_usage tests#4753
varundeepsaini wants to merge 1 commit intoMariaDB:mainfrom
varundeepsaini:MDEV-38195-fix-flaky-tests

Conversation

@varundeepsaini
Copy link
Contributor

@varundeepsaini varundeepsaini commented Mar 7, 2026

Summary

  • events.events_restart: Add missing mtr.add_suppression for "error during compilation" and "Query was empty" errors that occur when the event scheduler processes events from a corrupted mysql.event table (body column altered to longtext during the test).
  • main.tmp_space_usage: The test reads tmp_space_used from session_status and processlist across a connection switch. Between reads, internal temp space can change (e.g. InnoDB page allocation), causing small differences. Changed exact equality check to tolerate up to 32KB (two 16KB InnoDB pages).

Test plan

  • events.events_restart passes locally
  • main.tmp_space_usage passes locally
  • CI passes

events.events_restart: Add missing error log suppressions for
"error during compilation" and "Query was empty" that occur when
the event scheduler processes events from a corrupted mysql.event
table (body column altered to longtext).

main.tmp_space_usage: The test compares tmp_space_used from
session_status and processlist, but reads them at different times
across a connection switch. Internal temp space changes (e.g. InnoDB
page allocation) between reads cause small differences. Allow up to
32KB tolerance (two InnoDB pages) instead of requiring exact equality.

Signed-off-by: Varun Deep Saini <varun.23bcs10048@ms.sst.scaler.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant