[MDEV-22980] S3 storage engine fails to load due to plugin_maturity Created: 2020-06-23  Updated: 2020-08-01  Resolved: 2020-06-28

Status: Closed
Project: MariaDB Server
Component/s: Plugins, Storage Engine - S3
Affects Version/s: 10.5.4
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Geoff Montee (Inactive) Assignee: Otto Kekäläinen
Resolution: Not a Bug Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-17841 S3 Storage engine Closed
relates to MDEV-21853 Enable S3 storage by default Closed
relates to MDEV-22606 Include the S3 storage engine in Mari... Closed

 Description   

The S3 storage engine currently has plugin maturity alpha in MariaDB Community Server 10.5.4:

https://github.com/MariaDB/server/blob/8394979aae274a19689102420ebb86580e26f92e/storage/maria/ha_s3.cc#L1080

When you install the package for the S3 storage engine on Debian or Ubuntu, it installs a configuration file that tries to load the plugin:

$ cat /etc/mysql/mariadb.conf.d/s3.cnf 
[mariadb]
plugin-load-add=ha_s3
 
#
# Uncomment and configure the S3 engine
#
#s3-host-name=s3.amazonaws.com
#s3-protocol-version=Amazon
#s3-bucket=...
#s3-access-key=...
#s3-secret-key=...
#s3-region=eu-north-1

This configuration file does not set plugin_maturity=alpha, so this configuration file causes the plugin to fail to load:

2020-06-23  0:37:15 0 [ERROR] mysqld: Can't open shared library 'ha_s3.so' (errno: 1, Loading of alpha plugin S3 is prohibited by --plugin-maturity=gamma)
2020-06-23  0:37:15 0 [ERROR] Couldn't load plugins from 'ha_s3.so'.

Should s3.cnf set plugin_maturity=alpha, so that the plugin can be loaded successfully?



 Comments   
Comment by Otto Kekäläinen [ 2020-06-27 ]

Fix for this is included in https://github.com/MariaDB/server/pull/1600

Generated at Thu Feb 08 09:18:57 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.