Type:
Bug
Priority:
Blocker
Resolution:
Fixed
Affects Version/s:
N/A
origin/10.6 bb2e125d076d9475cbe04fc8c24fbaee39d76bda 2024-04-18T07:14:56+03:00
with and without with ibuf.patch.diff applied
Scenario:
1. Start the DB server and generate some initial data
2. Several sessions run some DML mix concurrent.
3. During 2. is ongoing run loops consisting of
3.1 mariadb-backup --backup to some location A
3.2 mariadb-backup --prepare on location A
3.3 Start a DB server on location A and check the integrity of the data
3.2 fails in one of these loops fails with
[rr 1609519 2196]2024-04-18 13:21:58 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=56848,56848
[rr 1609519 2358]2024-04-18 13:21:58 0 [Note] InnoDB: Opened 16 undo tablespaces
[rr 1609519 2404]2024-04-18 13:21:58 0 [Note] InnoDB: To recover: 104 pages
[rr 1609519 5067]2024-04-18 13:21:59 0 [ERROR] InnoDB: OPT_PAGE_CHECKSUM mismatch on [page id: space=21, page number=17]
[rr 1609519 5071]2024-04-18 13:21:59 0 [ERROR] InnoDB: Set innodb_force_recovery=1 to ignore corruption.
[rr 1609519 5075]2024-04-18 13:21:59 0 [Note] InnoDB: Set innodb_force_recovery=1 to ignore corrupted pages.
[rr 1609519 5079]2024-04-18 13:21:59 0 [ERROR] InnoDB: Unable to apply log to corrupted page [page id: space=21, page number=17]
[rr 1609519 5143]2024-04-18 13:21:59 0 [ERROR] InnoDB: OPT_PAGE_CHECKSUM mismatch on [page id: space=22, page number=3]
[rr 1609519 5147]2024-04-18 13:21:59 0 [ERROR] InnoDB: Set innodb_force_recovery=1 to ignore corruption.
[rr 1609519 5151]2024-04-18 13:21:59 0 [Note] InnoDB: Set innodb_force_recovery=1 to ignore corrupted pages.
[rr 1609519 5155]2024-04-18 13:21:59 0 [ERROR] InnoDB: Unable to apply log to corrupted page [page id: space=22, page number=3]
[rr 1609519 5384]2024-04-18 13:21:59 0 [ERROR] InnoDB: OPT_PAGE_CHECKSUM mismatch on [page id: space=23, page number=3]
[rr 1609519 5388]2024-04-18 13:21:59 0 [ERROR] InnoDB: Set innodb_force_recovery=1 to ignore corruption.
[rr 1609519 5392]2024-04-18 13:21:59 0 [Note] InnoDB: Set innodb_force_recovery=1 to ignore corrupted pages.
[rr 1609519 5396]2024-04-18 13:21:59 0 [ERROR] InnoDB: Unable to apply log to corrupted page [page id: space=23, page number=3]
[rr 1609519 6086]2024-04-18 13:22:00 0 [ERROR] InnoDB: Plugin initialization aborted at srv0start.cc[1532] with error Data structure corruption
[rr 1609519 6090][00] FATAL ERROR: 2024-04-18 13:22:00 mariabackup: innodb_init() returned 37 (Data structure corruption).
# Source DB server
sdp:/data1/results/1713460012/MB-1937$ _RR_TRACE_DIR=./1/rr rr replay --mark-stdio
# mariadb-backup --backup
sdp:/data1/results/1713460012/MB-1937$ _RR_TRACE_DIR=./1_clone/rr rr replay --mark-stdio mariadb-backup-0
# File backup of the location A made after executing mariadb-backup --backup
sdp:/data1/results/1713460012/MB-1937/1_clone/fbackup
# mariadb-backup --prepare
sdp:/data1/results/1713460012/MB-1937$ _RR_TRACE_DIR=./1_clone/rr rr replay --mark-stdio mariadb-backup-1
1298 tests with that scenario were executed and 84 of them failed with that error.
Hence I set the priority to "Blocker".
The rr traces above belong to some RQG test which fiddles with partitioned and non partitioned tables. Other tests which do not use partitioned tables show the same problem.
# git clone https://github.com/mleich1/rqg --branch <pick the right branch> RQG
#
# GIT_SHOW: HEAD -> master, origin/master, origin/HEAD ea2185ca59d4adbbfcd52987437aef1eac0aedad 2024-04-17T12:52:30+02:00
# rqg.pl : Version 4.5.0 (2023-12)
#
# $RQG_HOME/rqg.pl \
# --gendata=conf/engines/many_indexes.zz \
# --max_gd_duration=900 \
# --grammar=conf/engines/many_indexes.yy \
# --reporters=Mariabackup_linux \
# --mysqld=--loose-innodb-log-file-size=200M \
# --mysqld=--loose-innodb_lock_schedule_algorithm=fcfs \
# --mysqld=--loose-idle_write_transaction_timeout=0 \
# --mysqld=--loose-idle_transaction_timeout=0 \
# --mysqld=--loose-idle_readonly_transaction_timeout=0 \
# --mysqld=--connect_timeout=60 \
# --mysqld=--interactive_timeout=28800 \
# --mysqld=--slave_net_timeout=60 \
# --mysqld=--net_read_timeout=30 \
# --mysqld=--net_write_timeout=60 \
# --mysqld=--loose-table_lock_wait_timeout=50 \
# --mysqld=--wait_timeout=28800 \
# --no_mask \
# --queries=10000000 \
# --seed=random \
# --reporters=None \
# --reporters=ErrorLog \
# --reporters=Deadlock \
# --validators=None \
# --mysqld=--log_output=none \
# --mysqld=--log_bin_trust_function_creators=1 \
# --mysqld=--loose-debug_assert_on_not_freed_memory=0 \
# --engine=InnoDB \
# --restart_timeout=240 \
# --mysqld=--plugin-load-add=file_key_management.so \
# --mysqld=--loose-file-key-management-filename=$RQG_HOME/conf/mariadb/encryption_keys.txt \
# --mysqld=--plugin-load-add=provider_lzo.so \
# --mysqld=--plugin-load-add=provider_bzip2.so \
# --mysqld=--plugin-load-add=provider_lzma.so \
# --mysqld=--plugin-load-add=provider_snappy.so \
# --mysqld=--plugin-load-add=provider_lz4.so \
# --mysqld=--loose-innodb_compression_level=1 \
# --duration=300 \
# --mysqld=--loose-innodb_fatal_semaphore_wait_threshold=300 \
# --mysqld=--lock-wait-timeout=86400 \
# --mysqld=--innodb-lock-wait-timeout=50 \
# --mysqld=--loose-innodb_fast_shutdown=1 \
# --mysqld=--sql_mode=traditional \
# --mysqld=--innodb_file_per_table=1 \
# --mysqld=--loose-innodb_read_only_compressed=OFF \
# --mysqld=--innodb_stats_persistent=off \
# --mysqld=--innodb_adaptive_hash_index=off \
# --mysqld=--innodb_random_read_ahead=OFF \
# --mysqld=--log-bin \
# --mysqld=--sync-binlog=1 \
# --mysqld=--loose-innodb_evict_tables_on_commit_debug=off \
# --threads=2 \
# --rr=Extended \
# --rr_options=--chaos --wait \
# --mysqld=--innodb_undo_log_truncate=OFF \
# --mysqld=--innodb_undo_tablespaces=16 \
# --mysqld=--innodb_rollback_on_timeout=OFF \
# --mysqld=--innodb_page_size=64K \
# --mysqld=--innodb-buffer-pool-size=256M \
# <some local settings>
is caused by
MDEV-33588
buf::Block_hint is a performance hog
Closed
Transition
Time In Source Status
Execution Times
Open
In Progress
45m 43s
1
In Progress
Closed
2h 22m
1
{"report":{"fcp":1037.5,"ttfb":187.2000000178814,"pageVisibility":"visible","entityId":128826,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"8d12abd7-38ee-47e7-b3c9-26076d2af7e9","navigationType":0,"readyForUser":1131.0999999940395,"redirectCount":0,"resourceLoadedEnd":1188.5999999940395,"resourceLoadedStart":193.09999999403954,"resourceTiming":[{"duration":272.90000000596046,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":193.09999999403954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":193.09999999403954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":466,"responseStart":0,"secureConnectionStart":0},{"duration":273,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":193.40000000596046,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":193.40000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":466.40000000596046,"responseStart":0,"secureConnectionStart":0},{"duration":337.59999999403954,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":193.5,"connectEnd":193.5,"connectStart":193.5,"domainLookupEnd":193.5,"domainLookupStart":193.5,"fetchStart":193.5,"redirectEnd":0,"redirectStart":0,"requestStart":193.5,"responseEnd":531.0999999940395,"responseStart":531.0999999940395,"secureConnectionStart":193.5},{"duration":398.90000000596046,"initiatorType":"script","name":"https://jira.mariadb.org/s/099b33461394b8015fc36c0a4b96e19f-CDN/lu2bu7/820016/12ta74/8679b4946efa1a0bb029a3a22206fb5d/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":193.80000001192093,"connectEnd":193.80000001192093,"connectStart":193.80000001192093,"domainLookupEnd":193.80000001192093,"domainLookupStart":193.80000001192093,"fetchStart":193.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":193.80000001192093,"responseEnd":592.7000000178814,"responseStart":592.7000000178814,"secureConnectionStart":193.80000001192093},{"duration":402.69999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/94c15bff32baef80f4096a08aceae8bc-CDN/lu2bu7/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":193.90000000596046,"connectEnd":193.90000000596046,"connectStart":193.90000000596046,"domainLookupEnd":193.90000000596046,"domainLookupStart":193.90000000596046,"fetchStart":193.90000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":193.90000000596046,"responseEnd":596.5999999940395,"responseStart":596.5999999940395,"secureConnectionStart":193.90000000596046},{"duration":402.89999997615814,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":194.2000000178814,"connectEnd":194.2000000178814,"connectStart":194.2000000178814,"domainLookupEnd":194.2000000178814,"domainLookupStart":194.2000000178814,"fetchStart":194.2000000178814,"redirectEnd":0,"redirectStart":0,"requestStart":194.2000000178814,"responseEnd":597.0999999940395,"responseStart":597.0999999940395,"secureConnectionStart":194.2000000178814},{"duration":403.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":194.40000000596046,"connectEnd":194.40000000596046,"connectStart":194.40000000596046,"domainLookupEnd":194.40000000596046,"domainLookupStart":194.40000000596046,"fetchStart":194.40000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":194.40000000596046,"responseEnd":597.9000000059605,"responseStart":597.9000000059605,"secureConnectionStart":194.40000000596046},{"duration":479.40000000596046,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2bu7/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":194.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":194.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":673.9000000059605,"responseStart":0,"secureConnectionStart":0},{"duration":403.59999999403954,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":194.7000000178814,"connectEnd":194.7000000178814,"connectStart":194.7000000178814,"domainLookupEnd":194.7000000178814,"domainLookupStart":194.7000000178814,"fetchStart":194.7000000178814,"redirectEnd":0,"redirectStart":0,"requestStart":194.7000000178814,"responseEnd":598.3000000119209,"responseStart":598.3000000119209,"secureConnectionStart":194.7000000178814},{"duration":479.19999998807907,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":194.80000001192093,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":194.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":674,"responseStart":0,"secureConnectionStart":0},{"duration":403.80000001192093,"initiatorType":"script","name":"https://jira.mariadb.org/s/3339d87fa2538a859872f2df449bf8d0-CDN/lu2bu7/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":195,"connectEnd":195,"connectStart":195,"domainLookupEnd":195,"domainLookupStart":195,"fetchStart":195,"redirectEnd":0,"redirectStart":0,"requestStart":195,"responseEnd":598.8000000119209,"responseStart":598.8000000119209,"secureConnectionStart":195},{"duration":563.1999999880791,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":195.80000001192093,"connectEnd":195.80000001192093,"connectStart":195.80000001192093,"domainLookupEnd":195.80000001192093,"domainLookupStart":195.80000001192093,"fetchStart":195.80000001192093,"redirectEnd":0,"redirectStart":0,"requestStart":195.80000001192093,"responseEnd":759,"responseStart":759,"secureConnectionStart":195.80000001192093},{"duration":891.0999999940395,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":195.90000000596046,"connectEnd":195.90000000596046,"connectStart":195.90000000596046,"domainLookupEnd":195.90000000596046,"domainLookupStart":195.90000000596046,"fetchStart":195.90000000596046,"redirectEnd":0,"redirectStart":0,"requestStart":195.90000000596046,"responseEnd":1087,"responseStart":1086.9000000059605,"secureConnectionStart":195.90000000596046},{"duration":74.69999998807907,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":684.8000000119209,"connectEnd":684.8000000119209,"connectStart":684.8000000119209,"domainLookupEnd":684.8000000119209,"domainLookupStart":684.8000000119209,"fetchStart":684.8000000119209,"redirectEnd":0,"redirectStart":0,"requestStart":684.8000000119209,"responseEnd":759.5,"responseStart":759.5,"secureConnectionStart":684.8000000119209},{"duration":227.7000000178814,"initiatorType":"link","name":"https://jira.mariadb.org/s/d5715adaadd168a9002b108b2b039b50-CDN/lu2bu7/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/css/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":941.0999999940395,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":941.0999999940395,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1168.800000011921,"responseStart":0,"secureConnectionStart":0},{"duration":241.7000000178814,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2bu7/820016/12ta74/e65b778d185daf5aee24936755b43da6/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-project.issue.navigator,-jira.view.issue,-atl.general/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true","startTime":942.0999999940395,"connectEnd":942.0999999940395,"connectStart":942.0999999940395,"domainLookupEnd":942.0999999940395,"domainLookupStart":942.0999999940395,"fetchStart":942.0999999940395,"redirectEnd":0,"redirectStart":0,"requestStart":942.0999999940395,"responseEnd":1183.800000011921,"responseStart":1183.800000011921,"secureConnectionStart":942.0999999940395},{"duration":246.19999998807907,"initiatorType":"script","name":"https://jira.mariadb.org/s/f51ef5507eea4c158f257c66c93b2a3f-CDN/lu2bu7/820016/12ta74/be4b45e9cec53099498fa61c8b7acba4/_/download/contextbatch/js/jira.project.sidebar,-_super,-project.issue.navigator,-jira.general,-jira.browse.project,-jira.view.issue,-jira.global,-atl.general,-com.atlassian.jira.projects.sidebar.init/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true","startTime":942.4000000059605,"connectEnd":942.4000000059605,"connectStart":942.4000000059605,"domainLookupEnd":942.4000000059605,"domainLookupStart":942.4000000059605,"fetchStart":942.4000000059605,"redirectEnd":0,"redirectStart":0,"requestStart":942.4000000059605,"responseEnd":1188.5999999940395,"responseStart":1188.5999999940395,"secureConnectionStart":942.4000000059605},{"duration":212.2999999821186,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":1031.300000011921,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1031.300000011921,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1243.5999999940395,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":5,"responseStart":187,"responseEnd":190,"domLoading":190,"domInteractive":1193,"domContentLoadedEventStart":1193,"domContentLoadedEventEnd":1238,"domComplete":1448,"loadEventStart":1448,"loadEventEnd":1449,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1181.4000000059605},{"name":"bigPipe.sidebar-id.end","time":1182.2000000178814},{"name":"bigPipe.activity-panel-pipe-id.start","time":1182.4000000059605},{"name":"bigPipe.activity-panel-pipe-id.end","time":1183.300000011921},{"name":"activityTabFullyLoaded","time":1258.4000000059605}],"measures":[],"correlationId":"fa5ae686566a50","effectiveType":"4g","downlink":9,"rtt":0,"serverDuration":106,"dbReadsTimeInMs":16,"dbConnsTimeInMs":24,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}