[MDEV-15767] innodb.101_compatibility fails on buildbot Created: 2018-04-03  Updated: 2018-04-04  Resolved: 2018-04-04

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Affects Version/s: 10.3.6
Fix Version/s: 10.3.6

Type: Bug Priority: Major
Reporter: Marko Mäkelä Assignee: Marko Mäkelä
Resolution: Fixed Votes: 0
Labels: regression

Issue Links:
Problem/Incident
is caused by MDEV-12266 Reduce the number of InnoDB tablespac... Closed

 Description   

The test innodb.101_compatibility occasionally fails, because the flags for the tables tdd and tp are not always converted back. Thus, the second attempt of corrupting the flags will corrupt garbage to garbage, and cause test failure.

This started failing related to one or two MDEV-12266 commits affecting the function fsp_flags_try_adjust(). The fix should be simple:

diff --git a/storage/innobase/fil/fil0fil.cc b/storage/innobase/fil/fil0fil.cc
index fe7af34be2e..3f3b75332e6 100644
--- a/storage/innobase/fil/fil0fil.cc
+++ b/storage/innobase/fil/fil0fil.cc
@@ -4156,7 +4156,7 @@ void fsp_flags_try_adjust(fil_space_t* space, ulint flags)
 {
 	ut_ad(!srv_read_only_mode);
 	ut_ad(fsp_flags_is_valid(flags, space->id));
-	if (!space->size) {
+	if (!space->size && !fil_space_get_size(space->id)) {
 		return;
 	}
 	/* This code is executed during server startup while no


Generated at Thu Feb 08 08:23:52 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.