Upd: Here is a new test case, which appears to be deterministic, although still fairly fragile. I keep the initial concurrent one as well in the "Initial report" section, it needs to be re-checked after a fix.
#12 0x00005626a6630824 in replace_user_table (thd=0x7f26e0000b00, user_table=..., combo=..., rights=0, revoke_grant=false, can_create_user=true, no_auto_create=false) at /data/src/10.3/sql/sql_acl.cc:4196
#13 0x00005626a6643adc in mysql_create_user (thd=0x7f26e0000b00, list=..., handle_as_role=false) at /data/src/10.3/sql/sql_acl.cc:10241
#14 0x00005626a66ed3a6 in mysql_execute_command (thd=0x7f26e0000b00) at /data/src/10.3/sql/sql_parse.cc:5389
#15 0x00005626a66f57ac in mysql_parse (thd=0x7f26e0000b00, rawbuf=0x7f26e0014ce8 "CREATE USER '%'", length=15, parser_state=0x7f26f20355f0, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:8091
#16 0x00005626a66e2a60 in dispatch_command (command=COM_QUERY, thd=0x7f26e0000b00, packet=0x7f26e000b1f1 "CREATE USER '%'", packet_length=15, is_com_multi=false, is_next_command=false) at /data/src/10.3/sql/sql_parse.cc:1857
#17 0x00005626a66e144a in do_command (thd=0x7f26e0000b00) at /data/src/10.3/sql/sql_parse.cc:1403
#18 0x00005626a6849f41 in do_handle_one_connection (connect=0x5626aa509470) at /data/src/10.3/sql/sql_connect.cc:1402
#19 0x00005626a6849cc5 in handle_one_connection (arg=0x5626aa509470) at /data/src/10.3/sql/sql_connect.cc:1308
#20 0x00005626a6ce67e5 in pfs_spawn_thread (arg=0x5626aa44e1d0) at /data/src/10.3/storage/perfschema/pfs.cc:1862
#21 0x00007f26f9d7d494 in start_thread (arg=0x7f26f2036700) at pthread_create.c:333
#22 0x00007f26f7f4b93f in clone () from /lib/x86_64-linux-gnu/libc.so.6
Initial report:
The test is highly non-deterministic and fragile. Run with big enough --repeat=N. It usually failed for me within 50 attempts, but it can vary on different machines/builds.
#12 0x00000000005cb55b in replace_user_table (thd=0x7f1b787e5070, table=0x7f1b754b0c70, combo=..., rights=0, revoke_grant=false, can_create_user=true, no_auto_create=false) at /data/src/10.0/sql/sql_acl.cc:3331
#13 0x00000000005dc4c9 in mysql_create_user (thd=0x7f1b787e5070, list=..., handle_as_role=false) at /data/src/10.0/sql/sql_acl.cc:9322
#14 0x000000000065220b in mysql_execute_command (thd=0x7f1b787e5070) at /data/src/10.0/sql/sql_parse.cc:4091
#15 0x00000000006589d0 in mysql_parse (thd=0x7f1b787e5070, rawbuf=0x7f1b759a4088 "CREATE USER c@localhost", length=23, parser_state=0x7f1b7f14f640) at /data/src/10.0/sql/sql_parse.cc:6637
#16 0x000000000064b2f0 in dispatch_command (command=COM_QUERY, thd=0x7f1b787e5070, packet=0x7f1b772b6071 "CREATE USER c@localhost", packet_length=23) at /data/src/10.0/sql/sql_parse.cc:1300
#17 0x000000000064a5f0 in do_command (thd=0x7f1b787e5070) at /data/src/10.0/sql/sql_parse.cc:1003
#18 0x000000000076bf08 in do_handle_one_connection (thd_arg=0x7f1b787e5070) at /data/src/10.0/sql/sql_connect.cc:1377
#19 0x000000000076bc7a in handle_one_connection (arg=0x7f1b787e5070) at /data/src/10.0/sql/sql_connect.cc:1292
#20 0x0000000000acdb54 in pfs_spawn_thread (arg=0x7f1b772ad570) at /data/src/10.0/storage/perfschema/pfs.cc:1861
#21 0x00007f1b7ed83494 in start_thread (arg=0x7f1b7f150700) at pthread_create.c:333
#22 0x00007f1b7d35793f in clone () from /lib/x86_64-linux-gnu/libc.so.6
No visible effect on a non-debug build.
Attachments
Issue Links
relates to
MDEV-5525Assertion `status == 0' fails on creating user after granting it role admin option
Closed
MDEV-8174Assertion `status == 0' failed in add_role_user_mapping_action
Closed
MDEV-8614Assertion `status == 0' failed in add_role_user_mapping_action on RENAME USER
It basically adds a restart flag when anything involving grant hash tables changes, as we discussed.
You can quickly see the diff by doing: git show cd4cac2b95afe21a75b1846d03c9549a17784486 --ignore-white-space
Vicențiu Ciorbaru
added a comment - Hi Sergei!
Can you please review the changes here: https://github.com/MariaDB/server/pull/1930
It basically adds a restart flag when anything involving grant hash tables changes, as we discussed.
You can quickly see the diff by doing:
git show cd4cac2b95afe21a75b1846d03c9549a17784486 --ignore-white-space
I believe you meant to write "ignore-all-space" (not "ignore-white-space")
git show --help | grep -A2 'w, --ignore-all-space'
-w, --ignore-all-space
Ignore whitespace when comparing lines. This ignores differences
even if one line has whitespace where the other line has none.
Eric Herman
added a comment - - edited I believe you meant to write "ignore-all-space" (not "ignore-white-space")
git show --help | grep -A2 'w, --ignore-all-space'
-w, --ignore-all-space
Ignore whitespace when comparing lines. This ignores differences
even if one line has whitespace where the other line has none.
People
Vicențiu Ciorbaru
Elena Stepanova
Votes:
0Vote for this issue
Watchers:
6Start watching this issue
Dates
Created:
Updated:
Resolved:
Git Integration
Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.
{"report":{"fcp":817.2999999523163,"ttfb":237.29999995231628,"pageVisibility":"visible","entityId":71325,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"77395ace-b22a-4025-b8a7-78307c4b7247","navigationType":0,"readyForUser":915.0999999046326,"redirectCount":0,"resourceLoadedEnd":539.3999998569489,"resourceLoadedStart":245.59999990463257,"resourceTiming":[{"duration":8.5,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":245.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":245.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":254.09999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":8.599999904632568,"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":245.79999995231628,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":245.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":254.39999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":172.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":246,"connectEnd":246,"connectStart":246,"domainLookupEnd":246,"domainLookupStart":246,"fetchStart":246,"redirectEnd":0,"redirectStart":0,"requestStart":257.59999990463257,"responseEnd":418.5,"responseStart":274.2999999523163,"secureConnectionStart":246},{"duration":293.2999999523163,"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":246.09999990463257,"connectEnd":246.09999990463257,"connectStart":246.09999990463257,"domainLookupEnd":246.09999990463257,"domainLookupStart":246.09999990463257,"fetchStart":246.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":259.89999985694885,"responseEnd":539.3999998569489,"responseStart":276.5,"secureConnectionStart":246.09999990463257},{"duration":35.700000047683716,"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":246.19999980926514,"connectEnd":246.19999980926514,"connectStart":246.19999980926514,"domainLookupEnd":246.19999980926514,"domainLookupStart":246.19999980926514,"fetchStart":246.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":262.5,"responseEnd":281.89999985694885,"responseStart":280,"secureConnectionStart":246.19999980926514},{"duration":42.89999985694885,"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":246.29999995231628,"connectEnd":246.29999995231628,"connectStart":246.29999995231628,"domainLookupEnd":246.29999995231628,"domainLookupStart":246.29999995231628,"fetchStart":246.29999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":264.2999999523163,"responseEnd":289.19999980926514,"responseStart":282.09999990463257,"secureConnectionStart":246.29999995231628},{"duration":43.10000014305115,"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":246.39999985694885,"connectEnd":246.39999985694885,"connectStart":246.39999985694885,"domainLookupEnd":246.39999985694885,"domainLookupStart":246.39999985694885,"fetchStart":246.39999985694885,"redirectEnd":0,"redirectStart":0,"requestStart":265.19999980926514,"responseEnd":289.5,"responseStart":282.59999990463257,"secureConnectionStart":246.39999985694885},{"duration":13.399999856948853,"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":246.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":246.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":259.89999985694885,"responseStart":0,"secureConnectionStart":0},{"duration":43.299999952316284,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":246.59999990463257,"connectEnd":246.59999990463257,"connectStart":246.59999990463257,"domainLookupEnd":246.59999990463257,"domainLookupStart":246.59999990463257,"fetchStart":246.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":266.09999990463257,"responseEnd":289.89999985694885,"responseStart":283.5,"secureConnectionStart":246.59999990463257},{"duration":15,"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":246.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":246.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":261.69999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":44.5,"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":246.79999995231628,"connectEnd":246.79999995231628,"connectStart":246.79999995231628,"domainLookupEnd":246.79999995231628,"domainLookupStart":246.79999995231628,"fetchStart":246.79999995231628,"redirectEnd":0,"redirectStart":0,"requestStart":266.5,"responseEnd":291.2999999523163,"responseStart":284.89999985694885,"secureConnectionStart":246.79999995231628},{"duration":207.5,"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":313.2999999523163,"connectEnd":313.2999999523163,"connectStart":313.2999999523163,"domainLookupEnd":313.2999999523163,"domainLookupStart":313.2999999523163,"fetchStart":313.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":328.5,"responseEnd":520.7999999523163,"responseStart":513.3999998569489,"secureConnectionStart":313.2999999523163},{"duration":202.09999990463257,"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":319.5,"connectEnd":319.5,"connectStart":319.5,"domainLookupEnd":319.5,"domainLookupStart":319.5,"fetchStart":319.5,"redirectEnd":0,"redirectStart":0,"requestStart":337.39999985694885,"responseEnd":521.5999999046326,"responseStart":515.0999999046326,"secureConnectionStart":319.5},{"duration":171,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":571.6999998092651,"connectEnd":571.6999998092651,"connectStart":571.6999998092651,"domainLookupEnd":571.6999998092651,"domainLookupStart":571.6999998092651,"fetchStart":571.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":712.1999998092651,"responseEnd":742.6999998092651,"responseStart":741.8999998569489,"secureConnectionStart":571.6999998092651},{"duration":154,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":810,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":810,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":964,"responseStart":0,"secureConnectionStart":0},{"duration":178.29999995231628,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":816.8999998569489,"connectEnd":816.8999998569489,"connectStart":816.8999998569489,"domainLookupEnd":816.8999998569489,"domainLookupStart":816.8999998569489,"fetchStart":816.8999998569489,"redirectEnd":0,"redirectStart":0,"requestStart":965.6999998092651,"responseEnd":995.1999998092651,"responseStart":994,"secureConnectionStart":816.8999998569489}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":74,"responseStart":237,"responseEnd":319,"domLoading":241,"domInteractive":1025,"domContentLoadedEventStart":1025,"domContentLoadedEventEnd":1080,"domComplete":1307,"loadEventStart":1307,"loadEventEnd":1308,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1001},{"name":"bigPipe.sidebar-id.end","time":1001.5999999046326},{"name":"bigPipe.activity-panel-pipe-id.start","time":1001.7999999523163},{"name":"bigPipe.activity-panel-pipe-id.end","time":1003.3999998569489},{"name":"activityTabFullyLoaded","time":1094.5}],"measures":[],"correlationId":"9de8d7387bd384","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":89,"dbReadsTimeInMs":13,"dbConnsTimeInMs":29,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Hi Sergei!
Can you please review the changes here: https://github.com/MariaDB/server/pull/1930
It basically adds a restart flag when anything involving grant hash tables changes, as we discussed.
You can quickly see the diff by doing:
git show cd4cac2b95afe21a75b1846d03c9549a17784486 --ignore-white-space