SHOW BINLOG EVENTS FROM <"random"-pos> caused a variety of failures as reported in MDEV-18046. They are fixed but that approach is not future-proof as well as is not optimal to create extra check for being constructed
event parameters.
The extra checks can and should be avoided with conduction validation
to the supplied offset. The validation means scan of the requested log
to find the requested position as one that points to the beginning of an event. Scanning is meaningful only to a non-default binlog-checksum-off files (that fact is captured by MDEV-18046).
Attachments
Issue Links
relates to
MDEV-32628Cryptic ERROR message & inconsistent behavior on incorrect SHOW BINLOG EVENTS FROM ...
Sujatha Sivakumar (Inactive)
added a comment - Hello Andrei,
Can you please review the fix for MDEV-21839 .
Patch: https://github.com/MariaDB/server/commit/5bcf3104c94bfeeff2f9376b4d2065046b0e14de
Build Bot Testing: http://buildbot.askmonty.org/buildbot/grid?category=main&branch=bb-10.1-sujatha
Didn't add new tests as existing tests do the necessary testing:
binlog.binlog_show_binlog_event_random_pos
binlog.binlog_invalid_read_in_rotate
Sujatha Sivakumar (Inactive)
added a comment - Hello Monty,
Can you please review the fix for MDEV-21839 .
Patch: https://github.com/MariaDB/server/commit/61e34736742dab7401810a218c0f5d193409eea9
BuildBot Link: http://buildbot.askmonty.org/buildbot/grid?category=main&branch=bb-10.1-sujatha
Thank you.
Sujatha Sivakumar (Inactive)
added a comment - Fix is pushed in 10.1.47.
10.2:
====
No merge conflicts. But following file changes are not required from 10.2 and higer versions.
Hence reverted it.
/mysql-test/r/ctype_cp932_binlog_stm.result
10.2: https://github.com/MariaDB/server/commit/af28b96e3d005d8d0cb99985ce61a78a7778aa20
10.3:
====
Clean merge from 10.2 to 10.3.
10.3: https://github.com/MariaDB/server/commit/edf45efe33f2aeaa01ff45eaeec832f841c0ace0
10.4:
====
https://github.com/MariaDB/server/commit/14ab041de76c8f74de222b21bc9951282bfe8898
10.5:
=====
https://github.com/MariaDB/server/commit/475de254a8591d5d8006570d914469e359de60cc
People
Sujatha Sivakumar (Inactive)
Andrei Elkin
Votes:
0Vote for this issue
Watchers:
4Start 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":1499.7000002861023,"ttfb":499,"pageVisibility":"visible","entityId":83652,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"975b60d7-79d6-4581-a7d5-41fc2e04abbb","navigationType":0,"readyForUser":1640.0999999046326,"redirectCount":0,"resourceLoadedEnd":1115,"resourceLoadedStart":504.90000009536743,"resourceTiming":[{"duration":80.09999990463257,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":504.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":504.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":585,"responseStart":0,"secureConnectionStart":0},{"duration":81.80000019073486,"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":505.09999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":505.09999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":586.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":308,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":505.30000019073486,"connectEnd":505.30000019073486,"connectStart":505.30000019073486,"domainLookupEnd":505.30000019073486,"domainLookupStart":505.30000019073486,"fetchStart":505.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":589.2000002861023,"responseEnd":813.3000001907349,"responseStart":612.7000002861023,"secureConnectionStart":505.30000019073486},{"duration":609.4000000953674,"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":505.59999990463257,"connectEnd":505.59999990463257,"connectStart":505.59999990463257,"domainLookupEnd":505.59999990463257,"domainLookupStart":505.59999990463257,"fetchStart":505.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":590.4000000953674,"responseEnd":1115,"responseStart":640.7000002861023,"secureConnectionStart":505.59999990463257},{"duration":124.89999961853027,"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":505.7000002861023,"connectEnd":505.7000002861023,"connectStart":505.7000002861023,"domainLookupEnd":505.7000002861023,"domainLookupStart":505.7000002861023,"fetchStart":505.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":592.4000000953674,"responseEnd":630.5999999046326,"responseStart":629.0999999046326,"secureConnectionStart":505.7000002861023},{"duration":144,"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":506,"connectEnd":506,"connectStart":506,"domainLookupEnd":506,"domainLookupStart":506,"fetchStart":506,"redirectEnd":0,"redirectStart":0,"requestStart":593.5999999046326,"responseEnd":650,"responseStart":648.0999999046326,"secureConnectionStart":506},{"duration":130.7999997138977,"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":506.2000002861023,"connectEnd":506.2000002861023,"connectStart":506.2000002861023,"domainLookupEnd":506.2000002861023,"domainLookupStart":506.2000002861023,"fetchStart":506.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":597.0999999046326,"responseEnd":637,"responseStart":635.7000002861023,"secureConnectionStart":506.2000002861023},{"duration":86.40000009536743,"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":506.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":506.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":592.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":130.40000009536743,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":506.5,"connectEnd":506.5,"connectStart":506.5,"domainLookupEnd":506.5,"domainLookupStart":506.5,"fetchStart":506.5,"redirectEnd":0,"redirectStart":0,"requestStart":597.7000002861023,"responseEnd":636.9000000953674,"responseStart":635.0999999046326,"secureConnectionStart":506.5},{"duration":88.2999997138977,"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":506.7000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":506.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":595,"responseStart":0,"secureConnectionStart":0},{"duration":127.30000019073486,"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":506.90000009536743,"connectEnd":506.90000009536743,"connectStart":506.90000009536743,"domainLookupEnd":506.90000009536743,"domainLookupStart":506.90000009536743,"fetchStart":506.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":598.4000000953674,"responseEnd":634.2000002861023,"responseStart":630.9000000953674,"secureConnectionStart":506.90000009536743},{"duration":500,"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":507.90000009536743,"connectEnd":507.90000009536743,"connectStart":507.90000009536743,"domainLookupEnd":507.90000009536743,"domainLookupStart":507.90000009536743,"fetchStart":507.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":738.9000000953674,"responseEnd":1007.9000000953674,"responseStart":1002,"secureConnectionStart":507.90000009536743},{"duration":500.30000019073486,"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":508,"connectEnd":508,"connectStart":508,"domainLookupEnd":508,"domainLookupStart":508,"fetchStart":508,"redirectEnd":0,"redirectStart":0,"requestStart":739,"responseEnd":1008.3000001907349,"responseStart":1002.4000000953674,"secureConnectionStart":508},{"duration":253,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":953,"connectEnd":953,"connectStart":953,"domainLookupEnd":953,"domainLookupStart":953,"fetchStart":953,"redirectEnd":0,"redirectStart":0,"requestStart":1165.3000001907349,"responseEnd":1206,"responseStart":1205.4000000953674,"secureConnectionStart":953}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":334,"responseStart":499,"responseEnd":502,"domLoading":503,"domInteractive":1768,"domContentLoadedEventStart":1768,"domContentLoadedEventEnd":1842,"domComplete":2487,"loadEventStart":2487,"loadEventEnd":2488,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1724.2000002861023},{"name":"bigPipe.sidebar-id.end","time":1725.3000001907349},{"name":"bigPipe.activity-panel-pipe-id.start","time":1725.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":1726.9000000953674},{"name":"activityTabFullyLoaded","time":1856.8000001907349}],"measures":[],"correlationId":"5211c9244c9a8e","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":107,"dbReadsTimeInMs":13,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
Hello Andrei,
Can you please review the fix for
MDEV-21839.Patch: https://github.com/MariaDB/server/commit/5bcf3104c94bfeeff2f9376b4d2065046b0e14de
Build Bot Testing: http://buildbot.askmonty.org/buildbot/grid?category=main&branch=bb-10.1-sujatha
Didn't add new tests as existing tests do the necessary testing:
binlog.binlog_show_binlog_event_random_pos
binlog.binlog_invalid_read_in_rotate