Skip to content
/ server Public

Conversation

@jendis
Copy link

@jendis jendis commented Dec 22, 2025

Fix log message about unexpected table in system tablespace as the current message can be missleading due to still existing (but already deprecated) system tables SYS_DATAFILES and SYS_TABLESPACES, reported in

  • MDEV-38412

Also adding the informative message with table name of the unexpected table in system table space.

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.
  • 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

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

@CLAassistant
Copy link

CLAassistant commented Dec 22, 2025

CLA assistant check
All committers have signed the CLA.

@gkodinov gkodinov added the External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements. label Dec 29, 2025
@gkodinov gkodinov changed the title fsp0fsp.cc: log unexpected table in sys tablespace MDEV-38412: fsp0fsp.cc: log unexpected table in sys tablespace Jan 5, 2026
Copy link
Member

@gkodinov gkodinov left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution!

This is a preliminary review. In order for us to proceed with this. can you please clear up the license agreement asap?

@Thirunarayanan
Copy link
Member

Thanks for contribution.
Can you rebase the patch based on 11.4 version?

@dr-m dr-m changed the base branch from main to 11.4 January 12, 2026 09:15
Copy link
Contributor

@dr-m dr-m left a comment

Choose a reason for hiding this comment

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

This does not seem to be based on the latest 11.4 branch. Can you please git pull and git rebase again?

Comment on lines 32 to 33
let SEARCH_PATTERN=InnoDB: User table exists in the system tablespace;
let SEARCH_PATTERN=InnoDB: Found unexpected table in system tablespace \(space=0\): test\/t1;
--source include/search_pattern_in_file.inc
Copy link
Contributor

Choose a reason for hiding this comment

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

This test is failing on Microsoft Windows. I do see the expected output in
https://buildbot.mariadb.org/#/builders/234/builds/44722/steps/10/logs/mysqld_1_err_10

2026-01-12 10:11:51 0 [Note] InnoDB: Found unexpected table in system tablespace(space=0): test/t1

but I think that the regular expression is not being passed correctly. We may need to escape the backslash that will escape the PCRE special characters (). There is no need to escape /; it is not special.

I would suggest to omit the (space=0) from the error message and to simplify this regular expression accordingly.

Copy link
Author

Choose a reason for hiding this comment

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

Thank you for notice, let me fix it.

Copy link
Author

Choose a reason for hiding this comment

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

It should be fixed now.
But as you mentioned the error message, I use sql_print_information function, so I'm not sure if sql_print_error should be rather used - I think sql_print_information is suitable. Thank you for consideration.

Fix log message about unexpected table in system tablespace as the current
message can be missleading due to still existing (but already deprecated)
system tables SYS_DATAFILES and SYS_TABLESPACES, reported in
 - MDEV-38412

Also adding the informative message with table name of the unexpected table
in system table space.
@gkodinov gkodinov dismissed their stale review January 12, 2026 11:16

CLI cleared

@gkodinov gkodinov merged commit 3009210 into MariaDB:11.4 Jan 12, 2026
16 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements.

Development

Successfully merging this pull request may close these issues.

5 participants