Scenario:
|
1. Start the server and load some initial data.
|
2. Several connections run concurrent a random mix of DDL and DML.
|
3. During 2. is ongoing SIGKILL the server
|
4. The restart fails with
|
...
|
# 2025-02-26T12:26:51 [309330] | 2025-02-26 12:26:07 0 [Note] InnoDB: To recover: LSN 187242689/187312128; 392 pages
|
# 2025-02-26T12:26:51 [309330] | mariadbd: /data/Server/10.6-MDEV-36122/storage/innobase/fil/fil0crypt.cc:643: dberr_t fil_space_decrypt_full_crc32(ulint, fil_space_crypt_t*, byte*, byte*): Assertion `key_version != (0)' failed.
|
# 2025-02-26T12:27:40 [309330] | Thread 2 (Thread 498866.499388 (mariadbd)):
|
# 2025-02-26T12:27:40 [309330] | #0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140079542539840) at ./nptl/pthread_kill.c:44
|
# 2025-02-26T12:27:40 [309330] | #1 __pthread_kill_internal (signo=6, threadid=140079542539840) at ./nptl/pthread_kill.c:78
|
# 2025-02-26T12:27:40 [309330] | #2 __GI___pthread_kill (threadid=140079542539840, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
|
# 2025-02-26T12:27:40 [309330] | #3 0x00007f66dfa36476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
|
# 2025-02-26T12:27:40 [309330] | #4 0x00007f66dfa1c7f3 in __GI_abort () at ./stdlib/abort.c:79
|
# 2025-02-26T12:27:40 [309330] | #5 0x00007f66dfa1c71b in __assert_fail_base (fmt=0x7f66dfbd1130 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55911b3571da "key_version != (0)", file=0x55911b356560 "/data/Server/10.6-MDEV-36122/storage/innobase/fil/fil0crypt.cc", line=643, function=<optimized out>) at ./assert/assert.c:92
|
# 2025-02-26T12:27:40 [309330] | #6 0x00007f66dfa2de96 in __GI___assert_fail (assertion=0x55911b3571da "key_version != (0)", file=0x55911b356560 "/data/Server/10.6-MDEV-36122/storage/innobase/fil/fil0crypt.cc", line=643, function=0x55911b356850 "dberr_t fil_space_decrypt_full_crc32(ulint, fil_space_crypt_t*, byte*, byte*)") at ./assert/assert.c:101
|
# 2025-02-26T12:27:40 [309330] | #7 0x000055911adafa0a in fil_space_decrypt_full_crc32 (space=190, crypt_data=0x55911d6ac730, tmp_frame=tmp_frame@entry=0x7f66c0004000 "", src_frame=src_frame@entry=0x7f66d6f9c000 "") at 10.6-MDEV-36122/storage/innobase/fil/fil0crypt.cc:643
|
# 2025-02-26T12:27:40 [309330] | #8 0x000055911adb0df8 in fil_space_decrypt (space_id=<optimized out>, crypt_data=<optimized out>, tmp_frame=tmp_frame@entry=0x7f66c0004000 "", physical_size=physical_size@entry=16384, fsp_flags=<optimized out>, src_frame=src_frame@entry=0x7f66d6f9c000 "") at 10.6-MDEV-36122/storage/innobase/fil/fil0crypt.cc:768
|
# 2025-02-26T12:27:40 [309330] | #9 0x000055911adb0e7b in fil_space_decrypt (space=0x55911d6ac890, tmp_frame=0x7f66c0004000 "", src_frame=src_frame@entry=0x7f66d6f9c000 "") at 10.6-MDEV-36122/storage/innobase/fil/fil0crypt.cc:795
|
# 2025-02-26T12:27:40 [309330] | #10 0x000055911aabb3e6 in recv_dblwr_t::find_encrypted_page (this=0x55911b9d0e60 <recv_sys+2400>, node=..., page_no=3, buf=buf@entry=0x7f66d6f9c000 "") at 10.6-MDEV-36122/storage/innobase/log/log0recv.cc:4864
|
# 2025-02-26T12:27:40 [309330] | #11 0x000055911acee49d in buf_page_t::read_complete (this=0x7f66d6807870, node=...) at 10.6-MDEV-36122/storage/innobase/buf/buf0buf.cc:3771
|
# 2025-02-26T12:27:40 [309330] | #12 0x000055911ada6fbc in IORequest::read_complete (this=this@entry=0x55911d557d88, io_error=0) at 10.6-MDEV-36122/storage/innobase/fil/fil0fil.cc:2807
|
# 2025-02-26T12:27:40 [309330] | #13 0x000055911aaf573a in read_io_callback (c=0x55911d557d10) at 10.6-MDEV-36122/storage/innobase/os/os0file.cc:3234
|
# 2025-02-26T12:27:40 [309330] | #14 0x000055911ae3597d in tpool::task_group::execute (this=0x55911d557c50, t=t@entry=0x55911d557d68) at 10.6-MDEV-36122/tpool/task_group.cc:55
|
# 2025-02-26T12:27:40 [309330] | #15 0x000055911ae35d3d in tpool::task::execute (this=0x55911d557d68) at 10.6-MDEV-36122/tpool/task.cc:32
|
# 2025-02-26T12:27:40 [309330] | #16 0x000055911ae323bd in tpool::thread_pool_generic::worker_main (this=0x55911d50ea10, thread_var=0x55911d50ee30) at 10.6-MDEV-36122/tpool/tpool_generic.cc:574
|
# 2025-02-26T12:27:40 [309330] | #17 0x000055911ae3260c in std::__invoke_impl<void, void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*> (__t=<optimized out>, __f=<optimized out>) at /usr/include/c++/11/bits/invoke.h:74
|
# 2025-02-26T12:27:40 [309330] | #18 std::__invoke<void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*> (__fn=<optimized out>) at /usr/include/c++/11/bits/invoke.h:96
|
# 2025-02-26T12:27:40 [309330] | #19 std::thread::_Invoker<std::tuple<void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*> >::_M_invoke<0ul, 1ul, 2ul> (this=<optimized out>) at /usr/include/c++/11/bits/std_thread.h:259
|
# 2025-02-26T12:27:40 [309330] | #20 std::thread::_Invoker<std::tuple<void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*> >::operator() (this=<optimized out>) at /usr/include/c++/11/bits/std_thread.h:266
|
# 2025-02-26T12:27:40 [309330] | #21 std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*> > >::_M_run (this=<optimized out>) at /usr/include/c++/11/bits/std_thread.h:211
|
# 2025-02-26T12:27:40 [309330] | #22 0x00007f66dfe02253 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
|
# 2025-02-26T12:27:40 [309330] | #23 0x00007f66dfa88ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
|
# 2025-02-26T12:27:40 [309330] | #24 0x00007f66dfb19a04 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100
|
pluto:/data/results/1740572032/CR-2060$ _RR_TRACE_DIR=./1/rr rr replay
|
|
Per Marko: This seems to be a problem caused by the code for MDEV-34898.
|
|
{"report":{"fcp":934.0999999046326,"ttfb":258,"pageVisibility":"visible","entityId":133021,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"610b2d7c-ff2f-49a3-989b-7a7cc8a146ea","navigationType":0,"readyForUser":1000.6999998092651,"redirectCount":0,"resourceLoadedEnd":719.1999998092651,"resourceLoadedStart":265.69999980926514,"resourceTiming":[{"duration":157.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":265.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":265.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":423.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":157.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":265.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":265.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":423.40000009536743,"responseStart":0,"secureConnectionStart":0},{"duration":213,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":266.19999980926514,"connectEnd":266.19999980926514,"connectStart":266.19999980926514,"domainLookupEnd":266.19999980926514,"domainLookupStart":266.19999980926514,"fetchStart":266.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":426.2999997138977,"responseEnd":479.19999980926514,"responseStart":446.69999980926514,"secureConnectionStart":266.19999980926514},{"duration":237,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/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&whisper-enabled=true","startTime":266.40000009536743,"connectEnd":266.40000009536743,"connectStart":266.40000009536743,"domainLookupEnd":266.40000009536743,"domainLookupStart":266.40000009536743,"fetchStart":266.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":428,"responseEnd":503.40000009536743,"responseStart":448.90000009536743,"secureConnectionStart":266.40000009536743},{"duration":185.19999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":266.59999990463257,"connectEnd":266.59999990463257,"connectStart":266.59999990463257,"domainLookupEnd":266.59999990463257,"domainLookupStart":266.59999990463257,"fetchStart":266.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":428.90000009536743,"responseEnd":451.7999997138977,"responseStart":450.19999980926514,"secureConnectionStart":266.59999990463257},{"duration":190.7000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":266.69999980926514,"connectEnd":266.69999980926514,"connectStart":266.69999980926514,"domainLookupEnd":266.69999980926514,"domainLookupStart":266.69999980926514,"fetchStart":266.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":430.09999990463257,"responseEnd":457.40000009536743,"responseStart":456.19999980926514,"secureConnectionStart":266.69999980926514},{"duration":189.2999997138977,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":266.90000009536743,"connectEnd":266.90000009536743,"connectStart":266.90000009536743,"domainLookupEnd":266.90000009536743,"domainLookupStart":266.90000009536743,"fetchStart":266.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":430.19999980926514,"responseEnd":456.19999980926514,"responseStart":454.40000009536743,"secureConnectionStart":266.90000009536743},{"duration":162.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":267,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":267,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":429.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":187,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":267.19999980926514,"connectEnd":267.19999980926514,"connectStart":267.19999980926514,"domainLookupEnd":267.19999980926514,"domainLookupStart":267.19999980926514,"fetchStart":267.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":433.5,"responseEnd":454.19999980926514,"responseStart":452.90000009536743,"secureConnectionStart":267.19999980926514},{"duration":165.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/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":267.40000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":267.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":433.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":192.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/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":267.59999990463257,"connectEnd":267.59999990463257,"connectStart":267.59999990463257,"domainLookupEnd":267.59999990463257,"domainLookupStart":267.59999990463257,"fetchStart":267.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":435.09999990463257,"responseEnd":460.19999980926514,"responseStart":458.7999997138977,"secureConnectionStart":267.59999990463257},{"duration":440.3999996185303,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":278.40000009536743,"connectEnd":278.40000009536743,"connectStart":278.40000009536743,"domainLookupEnd":278.40000009536743,"domainLookupStart":278.40000009536743,"fetchStart":278.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":657.2999997138977,"responseEnd":718.7999997138977,"responseStart":714.5999999046326,"secureConnectionStart":278.40000009536743},{"duration":430.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":288.7999997138977,"connectEnd":288.7999997138977,"connectStart":288.7999997138977,"domainLookupEnd":288.7999997138977,"domainLookupStart":288.7999997138977,"fetchStart":288.7999997138977,"redirectEnd":0,"redirectStart":0,"requestStart":657.5,"responseEnd":719.1999998092651,"responseStart":716.0999999046326,"secureConnectionStart":288.7999997138977},{"duration":194.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":694.5999999046326,"connectEnd":694.5999999046326,"connectStart":694.5999999046326,"domainLookupEnd":694.5999999046326,"domainLookupStart":694.5999999046326,"fetchStart":694.5999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":852.7999997138977,"responseEnd":888.6999998092651,"responseStart":887.5999999046326,"secureConnectionStart":694.5999999046326},{"duration":132.5,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":910.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":910.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1042.6999998092651,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":74,"domainLookupEnd":80,"connectStart":80,"connectEnd":104,"secureConnectionStart":91,"requestStart":104,"responseStart":257,"responseEnd":288,"domLoading":261,"domInteractive":1070,"domContentLoadedEventStart":1070,"domContentLoadedEventEnd":1110,"domComplete":1385,"loadEventStart":1385,"loadEventEnd":1386,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1045.4000000953674},{"name":"bigPipe.sidebar-id.end","time":1046.1999998092651},{"name":"bigPipe.activity-panel-pipe-id.start","time":1046.2999997138977},{"name":"bigPipe.activity-panel-pipe-id.end","time":1048.6999998092651},{"name":"activityTabFullyLoaded","time":1126.5999999046326}],"measures":[],"correlationId":"53716a4bb8c878","effectiveType":"4g","downlink":9.5,"rtt":0,"serverDuration":90,"dbReadsTimeInMs":9,"dbConnsTimeInMs":17,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
RQG Test setup
-----------------------
# git clone https://github.com/mleich1/rqg --branch <pick the right branch> RQG
#
# GIT_SHOW: HEAD -> master, origin/master, origin/HEAD cb2ddc8316c26d7daefd9b6ec892054cef376369 2025-02-26T12:16:35+01:00
# rqg.pl : Version 4.5.0 (2023-12)
#
# $RQG_HOME/rqg.pl \
# --grammar=conf/mariadb/innodb_compression_encryption.yy \
# --gendata=conf/mariadb/innodb_compression_encryption.zz \
# --max_gd_duration=1800 \
# --mysqld=--innodb-encrypt-log \
# --mysqld=--innodb-encrypt-tables \
# --reporters=CrashRecovery \
# --redefine=conf/mariadb/redefine_innodb_undo.yy \
# --mysqld=--innodb-immediate-scrub-data-uncompressed=1 \
# --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=--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=on \
# --mysqld=--innodb_random_read_ahead=OFF \
# --mysqld=--loose-innodb_evict_tables_on_commit_debug=on \
# --threads=9 \
# --rr=Extended \
# --rr_options=--wait \
# --mysqld=--innodb_undo_log_truncate=OFF \
# --mysqld=--innodb_undo_tablespaces=3 \
# --mysqld=--innodb_rollback_on_timeout=OFF \
# --mysqld=--innodb_page_size=16K \
# --mysqld=--innodb-buffer-pool-size=10M \
# --vardir_type=fast \
# --no_mask \
# <local settings>