Issue
Cannot build AWS key management using:
cmake -DPLUGIN_AWS_KEY_MANAGEMENT=DYNAMIC \
|
-DAWS_SDK_EXTERNAL_PROJECT=1 \
|
-DNOT_FOR_DISTRIBUTION=1 \
|
../mariadb; \
|
|
make aws_key_management;
|
Steps to Reproduce
echo "deb http://ftp.osuosl.org/pub/mariadb/repo/10.5/ubuntu bionic main" \
|
| tee -a /etc/apt/sources.list.d/mariadb.list
|
|
echo "deb-src http://ftp.osuosl.org/pub/mariadb/repo/10.5/ubuntu bionic main" \
|
| tee -a /etc/apt/sources.list.d/mariadb-src.list
|
|
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
|
apt-get update
|
apt-get build-dep mariadb-10.5
|
|
git clone --branch 10.5 https://github.com/MariaDB/server.git /tmp/mariadb
|
|
mkdir /tmp/build-mariadb
|
cd /tmp/build-mariadb
|
|
cmake -DPLUGIN_AWS_KEY_MANAGEMENT=DYNAMIC \
|
-DAWS_SDK_EXTERNAL_PROJECT=1 \
|
-DNOT_FOR_DISTRIBUTION=1 \
|
../mariadb; \
|
|
make aws_key_management;
|
Work around
Initially a issue on the mariadb docker page (https://github.com/docker-library/mariadb/issues/322) @grooverdan provided me with a patch to allow me to build the AWS key management in a docker container. I have also tested this with a regular distribution of Ubuntu as stated from my environment above.
After "git clone --branch 10.5 https://github.com/MariaDB/server.git /tmp/mariadb" add
cd /tmp/mariadb
|
|
wget -O aws.patch https://gist.githubusercontent.com/grooverdan/639557efa21fd4a67aee0002c7f81d3d/raw/d372e07772e3760fd7c1abaf117032b26db1d713/mariadb-10.5-patch-aws-plugin
|
|
git apply aws.patch
|
Then continue with the rest of the steps.
Patch contents
diff --git a/extra/aws_sdk/CMakeLists.txt b/extra/aws_sdk/CMakeLists.txt
|
index 85a196dccce..7c4b8d8195c 100644
|
--- a/extra/aws_sdk/CMakeLists.txt
|
+++ b/extra/aws_sdk/CMakeLists.txt
|
@@ -34,7 +34,7 @@ ENDFOREACH()
|
IF(CMAKE_VERSION LESS "3.0")
|
SET(GIT_TAG "1.0.8")
|
ELSE()
|
- SET(GIT_TAG "1.2.11")
|
+ SET(GIT_TAG "1.8.29")
|
ENDIF()
|
|
IF(MSVC_CRT_TYPE MATCHES "/MD")
|
diff --git a/plugin/aws_key_management/aws_key_management_plugin.cc b/plugin/aws_key_management/aws_key_management_plugin.cc
|
index 489dd375387..e2182336aa6 100644
|
--- a/plugin/aws_key_management/aws_key_management_plugin.cc
|
+++ b/plugin/aws_key_management/aws_key_management_plugin.cc
|
@@ -161,6 +161,10 @@ class MySQLLogSystem : public Aws::Utils::Logging::FormattedLogSystem
|
{
|
}
|
|
+ virtual void Flush(void) override
|
+ {
|
+ }
|
+
|
protected:
|
virtual void ProcessFormattedStatement(Aws::String&& statement) override
|
{
|
Transition |
Time In Source Status |
Execution Times |
Open |
|
In Progress |
|
62d 14h 25m
|
1
|
In Progress |
|
Closed |
|
1d 20h 52m
|
1
|
{"report":{"fcp":2865.7999999523163,"ttfb":1506.0999999046326,"pageVisibility":"visible","entityId":91026,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":32,"apdex":0.5,"journeyId":"038d024f-0954-43b7-99a1-371be6e6eab7","navigationType":0,"readyForUser":3036.399999856949,"redirectCount":0,"resourceLoadedEnd":3573.2999999523163,"resourceLoadedStart":1524.6999998092651,"resourceTiming":[{"duration":748.1000001430511,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":1524.6999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1524.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2272.7999999523163,"responseStart":0,"secureConnectionStart":0},{"duration":748.0999999046326,"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":1525.0999999046326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1525.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2273.199999809265,"responseStart":0,"secureConnectionStart":0},{"duration":762.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":1525.2999999523163,"connectEnd":1525.2999999523163,"connectStart":1525.2999999523163,"domainLookupEnd":1525.2999999523163,"domainLookupStart":1525.2999999523163,"fetchStart":1525.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1525.2999999523163,"responseEnd":2287.7999999523163,"responseStart":2287.7999999523163,"secureConnectionStart":1525.2999999523163},{"duration":832.6999998092651,"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":1526,"connectEnd":1526,"connectStart":1526,"domainLookupEnd":1526,"domainLookupStart":1526,"fetchStart":1526,"redirectEnd":0,"redirectStart":0,"requestStart":1526,"responseEnd":2358.699999809265,"responseStart":2358.699999809265,"secureConnectionStart":1526},{"duration":836,"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":1526.2999999523163,"connectEnd":1526.2999999523163,"connectStart":1526.2999999523163,"domainLookupEnd":1526.2999999523163,"domainLookupStart":1526.2999999523163,"fetchStart":1526.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1526.2999999523163,"responseEnd":2362.2999999523163,"responseStart":2362.2999999523163,"secureConnectionStart":1526.2999999523163},{"duration":836.2999999523163,"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":1526.5,"connectEnd":1526.5,"connectStart":1526.5,"domainLookupEnd":1526.5,"domainLookupStart":1526.5,"fetchStart":1526.5,"redirectEnd":0,"redirectStart":0,"requestStart":1526.5,"responseEnd":2362.7999999523163,"responseStart":2362.7999999523163,"secureConnectionStart":1526.5},{"duration":836.4000000953674,"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":1526.6999998092651,"connectEnd":1526.6999998092651,"connectStart":1526.6999998092651,"domainLookupEnd":1526.6999998092651,"domainLookupStart":1526.6999998092651,"fetchStart":1526.6999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1526.6999998092651,"responseEnd":2363.0999999046326,"responseStart":2363.0999999046326,"secureConnectionStart":1526.6999998092651},{"duration":912.7999999523163,"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":1526.7999999523163,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1526.7999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2439.5999999046326,"responseStart":0,"secureConnectionStart":0},{"duration":837.5,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":1527,"connectEnd":1527,"connectStart":1527,"domainLookupEnd":1527,"domainLookupStart":1527,"fetchStart":1527,"redirectEnd":0,"redirectStart":0,"requestStart":1527,"responseEnd":2364.5,"responseStart":2364.5,"secureConnectionStart":1527},{"duration":912.7000000476837,"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":1527.1999998092651,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":1527.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":2439.899999856949,"responseStart":0,"secureConnectionStart":0},{"duration":838.7000000476837,"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":1527.2999999523163,"connectEnd":1527.2999999523163,"connectStart":1527.2999999523163,"domainLookupEnd":1527.2999999523163,"domainLookupStart":1527.2999999523163,"fetchStart":1527.2999999523163,"redirectEnd":0,"redirectStart":0,"requestStart":1527.2999999523163,"responseEnd":2366,"responseStart":2366,"secureConnectionStart":1527.2999999523163},{"duration":2038.3000001907349,"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":1534.1999998092651,"connectEnd":1534.1999998092651,"connectStart":1534.1999998092651,"domainLookupEnd":1534.1999998092651,"domainLookupStart":1534.1999998092651,"fetchStart":1534.1999998092651,"redirectEnd":0,"redirectStart":0,"requestStart":1534.1999998092651,"responseEnd":3572.5,"responseStart":3572.5,"secureConnectionStart":1534.1999998092651},{"duration":2034.7999999523163,"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":1538.5,"connectEnd":1538.5,"connectStart":1538.5,"domainLookupEnd":1538.5,"domainLookupStart":1538.5,"fetchStart":1538.5,"redirectEnd":0,"redirectStart":0,"requestStart":1538.5,"responseEnd":3573.2999999523163,"responseStart":3573.2999999523163,"secureConnectionStart":1538.5},{"duration":855.2000000476837,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":2457.199999809265,"connectEnd":2457.199999809265,"connectStart":2457.199999809265,"domainLookupEnd":2457.199999809265,"domainLookupStart":2457.199999809265,"fetchStart":2457.199999809265,"redirectEnd":0,"redirectStart":0,"requestStart":2457.199999809265,"responseEnd":3312.399999856949,"responseStart":3312.399999856949,"secureConnectionStart":2457.199999809265},{"duration":761.4000000953674,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":2853.399999856949,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":2853.399999856949,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":3614.7999999523163,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":956,"responseStart":1506,"responseEnd":1539,"domLoading":1520,"domInteractive":3668,"domContentLoadedEventStart":3668,"domContentLoadedEventEnd":3772,"domComplete":4445,"loadEventStart":4445,"loadEventEnd":4446,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":3576.899999856949},{"name":"bigPipe.sidebar-id.end","time":3578.2999999523163},{"name":"bigPipe.activity-panel-pipe-id.start","time":3578.5},{"name":"bigPipe.activity-panel-pipe-id.end","time":3579.899999856949},{"name":"activityTabFullyLoaded","time":3800.7999999523163}],"measures":[],"correlationId":"f9ff1f16328edb","effectiveType":"4g","downlink":9.8,"rtt":0,"serverDuration":99,"dbReadsTimeInMs":14,"dbConnsTimeInMs":23,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}