See my question to Experts Exchange for the full details and my workaround
https://www.experts-exchange.com/questions/29245628/BUG-IN-MARIADB-AUTOINC-FUNCTION.html
Short version: On importing blocks of 10000 CSVs using a LOAD DATA script run from a batch file, the first block will be numbered correctly. The first row in the second block will skip exactly 6183 numbers (as though the auto_increment value was reset by that amount)
I discovered by trial and error that if I tried, prior to the next upload, to reset the auto_increment value manually (through the HEIDI SQL UI) the next block would be numbered correctly. If I imported the block after that WITHOUT such intervention, it would arrive with its first number having skipped the same 6183.
As I'm trying to build a table with 300 million rows, manual intervention wasn't an option so I discovered that, if before triggering the next upload, I calculate correct auto_increment value and issue the command:
ALTER TABLE `hash_chain` AUTO_INCREMENT=[whatever I've just calculated]
that has the same effect as the manual intervention and the numbering appears as it should.
(medium whinge: it took me 3 days to get that line to work because NOWHERE could I find any hint that we needed to use that eclectic punctuation. Maria's own guide https://mariadb.com/kb/en/auto_increment/ doesn't even use punctuation and all the examples I could find were using either no punctuation or standard quote marks instead of those "diacriticals". I only discovered by forensically examining the code HEIDI produced when I did the manual intervention.)
The important point, of course, is that this kludge simply shouldn't be necessary and I can find no evidence that anyone else has reported similar behaviour.
If required, because the data is entirely anonymous, (and changes every time I build it) I'm happy to provide a few sample csvs and the code I use to run the import, for others to try to recreate the problem.
{"report":{"fcp":715.8000001907349,"ttfb":125.60000014305115,"pageVisibility":"visible","entityId":114324,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"39961f71-c3ca-49c2-98b1-81af6af9f6c9","navigationType":0,"readyForUser":772.8000001907349,"redirectCount":0,"resourceLoadedEnd":723.2000000476837,"resourceLoadedStart":130.5,"resourceTiming":[{"duration":119,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":130.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":130.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":249.5,"responseStart":0,"secureConnectionStart":0},{"duration":118.90000009536743,"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":130.70000004768372,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":130.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":249.60000014305115,"responseStart":0,"secureConnectionStart":0},{"duration":127.79999995231628,"initiatorType":"script","name":"https://jira.mariadb.org/s/fbf975c0cce4b1abf04784eeae9ba1f4-CDN/lu2bu7/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":130.80000019073486,"connectEnd":130.80000019073486,"connectStart":130.80000019073486,"domainLookupEnd":130.80000019073486,"domainLookupStart":130.80000019073486,"fetchStart":130.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":130.80000019073486,"responseEnd":258.60000014305115,"responseStart":258.60000014305115,"secureConnectionStart":130.80000019073486},{"duration":195.40000009536743,"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":130.90000009536743,"connectEnd":130.90000009536743,"connectStart":130.90000009536743,"domainLookupEnd":130.90000009536743,"domainLookupStart":130.90000009536743,"fetchStart":130.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":130.90000009536743,"responseEnd":326.30000019073486,"responseStart":326.30000019073486,"secureConnectionStart":130.90000009536743},{"duration":199.39999985694885,"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":131.10000014305115,"connectEnd":131.10000014305115,"connectStart":131.10000014305115,"domainLookupEnd":131.10000014305115,"domainLookupStart":131.10000014305115,"fetchStart":131.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":131.10000014305115,"responseEnd":330.5,"responseStart":330.5,"secureConnectionStart":131.10000014305115},{"duration":199.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":131.10000014305115,"connectEnd":131.10000014305115,"connectStart":131.10000014305115,"domainLookupEnd":131.10000014305115,"domainLookupStart":131.10000014305115,"fetchStart":131.10000014305115,"redirectEnd":0,"redirectStart":0,"requestStart":131.10000014305115,"responseEnd":331,"responseStart":331,"secureConnectionStart":131.10000014305115},{"duration":200.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":131.20000004768372,"connectEnd":131.20000004768372,"connectStart":131.20000004768372,"domainLookupEnd":131.20000004768372,"domainLookupStart":131.20000004768372,"fetchStart":131.20000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":131.20000004768372,"responseEnd":331.30000019073486,"responseStart":331.30000019073486,"secureConnectionStart":131.20000004768372},{"duration":200.39999985694885,"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":131.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":131.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":331.7000000476837,"responseStart":0,"secureConnectionStart":0},{"duration":200.20000004768372,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":131.40000009536743,"connectEnd":131.40000009536743,"connectStart":131.40000009536743,"domainLookupEnd":131.40000009536743,"domainLookupStart":131.40000009536743,"fetchStart":131.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":131.40000009536743,"responseEnd":331.60000014305115,"responseStart":331.60000014305115,"secureConnectionStart":131.40000009536743},{"duration":200.5,"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":131.5,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":131.5,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":332,"responseStart":0,"secureConnectionStart":0},{"duration":200.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":131.70000004768372,"connectEnd":131.70000004768372,"connectStart":131.70000004768372,"domainLookupEnd":131.70000004768372,"domainLookupStart":131.70000004768372,"fetchStart":131.70000004768372,"redirectEnd":0,"redirectStart":0,"requestStart":131.70000004768372,"responseEnd":332.2000000476837,"responseStart":332.2000000476837,"secureConnectionStart":131.70000004768372},{"duration":582.5999999046326,"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":140.30000019073486,"connectEnd":140.30000019073486,"connectStart":140.30000019073486,"domainLookupEnd":140.30000019073486,"domainLookupStart":140.30000019073486,"fetchStart":140.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":140.30000019073486,"responseEnd":722.9000000953674,"responseStart":722.9000000953674,"secureConnectionStart":140.30000019073486},{"duration":580.8999998569489,"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":142.30000019073486,"connectEnd":142.30000019073486,"connectStart":142.30000019073486,"domainLookupEnd":142.30000019073486,"domainLookupStart":142.30000019073486,"fetchStart":142.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":142.30000019073486,"responseEnd":723.2000000476837,"responseStart":723.2000000476837,"secureConnectionStart":142.30000019073486},{"duration":140,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":471.5,"connectEnd":471.5,"connectStart":471.5,"domainLookupEnd":471.5,"domainLookupStart":471.5,"fetchStart":471.5,"redirectEnd":0,"redirectStart":0,"requestStart":471.5,"responseEnd":611.5,"responseStart":611.5,"secureConnectionStart":471.5}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":8,"responseStart":125,"responseEnd":142,"domLoading":128,"domInteractive":825,"domContentLoadedEventStart":825,"domContentLoadedEventEnd":863,"domComplete":1732,"loadEventStart":1732,"loadEventEnd":1734,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":807.9000000953674},{"name":"bigPipe.sidebar-id.end","time":808.7000000476837},{"name":"bigPipe.activity-panel-pipe-id.start","time":808.8000001907349},{"name":"bigPipe.activity-panel-pipe-id.end","time":811.4000000953674},{"name":"activityTabFullyLoaded","time":874.2000000476837}],"measures":[],"correlationId":"95dfd20ebc4374","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":70,"dbReadsTimeInMs":10,"dbConnsTimeInMs":16,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}