Skip to content
/ server Public

Conversation

@tonychen2001
Copy link
Contributor

Description

Improvements to clarity for auto increment checks during CHECK TABLE FOR UPGRADE operations. The message now makes it clear that a CHECK TABLE FOR UPGRADE must be run while the engine is not in a read-only state for the auto increment check on each open notification to be cleared.

Release Notes

N/A

How can this PR be tested?

Existing innodb.autoinc_import MTR had been updated according to the new notification message.

PR quality check

Copyright

All new code of the whole pull request, including one or several files
that are either new files or modified ones, are contributed under the
BSD-new license. I am contributing on behalf of my employer Amazon Web
Services, Inc.

In commit 0381921, logic was added to fix bogus values of PAGE_ROOT_AUTO_INC
when upgrading from MySQL or versions of MariaDB < 10.2.10. As part of this
change, if a table's frm version was less than 10.2.10 and the server was in a
read-only state (preventing the frm version from being updated), a message was
introduced during the execution of CHECK TABLE FOR UPGRADE informing users that
the auto_increment check would be performed on each open of the table.

However, this message didn't mention the fact that the server being in a
read-only state would prevent the frm version from being updated thus causing
confusion as the message would not go away even after running CHECK TABLE FOR
UPGRADE.

The message is now improved for clarity.

All new code of the whole pull request, including one or several files
that are either new files or modified ones, are contributed under the
BSD-new license. I am contributing on behalf of my employer Amazon Web
Services, Inc.
A small simplification is made to ha_innobase::check() by removing redundant
checks for `check_for_upgrade()` and handler_flags.  ha_innobase::handler_flags
is only set by `check_for_upgrade()`.

All new code of the whole pull request, including one or several files that
are either new files or modified ones, are contributed under the BSD-new
license. I am contributing on behalf of my employer Amazon Web Services,
Inc.
@tonychen2001
Copy link
Contributor Author

tonychen2001 commented Jan 29, 2026

Test failure on Windows ARM64 seems unrelated

main.udf_query_cache                     w5 [ fail ]

@@ -9,7 +9,7 @@
 metaphon('MySQL')
 show status like "Qcache_hits";
 Variable_name	Value
-Qcache_hits	0
+Qcache_hits	2
 show status like "Qcache_queries_in_cache";
 Variable_name	Value
 Qcache_queries_in_cache	0
@@ -17,7 +17,7 @@
 metaphon('MySQL')
 show status like "Qcache_hits";
 Variable_name	Value
-Qcache_hits	0
+Qcache_hits	2
 show status like "Qcache_queries_in_cache";
 Variable_name	Value
 Qcache_queries_in_cache	0

Result content mismatch

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