Bug 1459671

Summary: mariadb fails to start with tokudb; jemalloc not correctly enabled
Product: [Fedora] Fedora Reporter: Michael Hampton <error>
Component: mariadbAssignee: Michal Schorm <mschorm>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 24CC: dciabrin, hhorak, jstanek, mbayer, mkocka, mmuzila, mschorm, praiskup
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: mariadb-10.1.24-3.fc26 mariadb-10.1.24-3.fc24 mariadb-10.1.24-3.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-16 13:17:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch to enable jemalloc none

Description Michael Hampton 2017-06-07 18:29:22 UTC
Description of problem:
In current builds of mariadb, jemalloc is documented as enabled, but is not actually enabled.


Version-Release number of selected component (if applicable):
mariadb-10.1.24-1.fc24
mariadb-10.1.24-1.fc25
mariadb-10.1.24-1.fc26
mariadb-10.1.24-1.fc27


How reproducible:
Always


Steps to Reproduce:
1. Install mariadb-server
2. Attempt to enable tokudb in my.cnf with plugin-load-add=ha_tokudb.so
3. systemctl start mariadb


Actual results:
mariadb fails to start with errors:
2017-06-07 18:16:37 140270400252096 [ERROR] TokuDB is not initialized because jemalloc is not loaded
2017-06-07 18:16:37 140270400252096 [ERROR] Plugin 'TokuDB' init function returned error.
2017-06-07 18:16:37 140270400252096 [ERROR] Plugin 'TokuDB' registration as a STORAGE ENGINE failed.


Expected results:
mariadb should start normally and tokudb engine should be available.


Additional info:
The build log in koji also reveals that jemalloc wasn't actually built in:

CMake Warning at storage/tokudb/CMakeLists.txt:33 (MESSAGE):
  TokuDB is enabled, but jemalloc is not.  This configuration is not
  supported

It appears that the problem is "-DWITH_JEMALLOC=ON" in the %configure line. This form is not correct; like the other feature defines, it should be "-DWITH_JEMALLOC=system".

Comment 1 Michal Schorm 2017-06-08 07:22:18 UTC
Thanks for the report.

I'm working on the fix.
I won't push any current mariadb Bodhi update to the stable.

Comment 2 Michael Hampton 2017-06-08 10:10:22 UTC
Created attachment 1286099 [details]
Patch to enable jemalloc

It's a pretty trivial patch to get this fixed.

Comment 3 Fedora Update System 2017-06-08 16:07:46 UTC
mariadb-10.1.24-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-d04e48112b

Comment 4 Fedora Update System 2017-06-08 16:08:08 UTC
mariadb-10.1.24-2.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-89daff1f64

Comment 5 Fedora Update System 2017-06-08 16:08:23 UTC
mariadb-10.1.24-2.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-120af70498

Comment 6 Fedora Update System 2017-06-09 13:31:44 UTC
mariadb-10.1.24-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-d04e48112b

Comment 7 Fedora Update System 2017-06-09 13:40:58 UTC
mariadb-10.1.24-2.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-89daff1f64

Comment 8 Fedora Update System 2017-06-09 14:04:15 UTC
mariadb-10.1.24-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-8425f676f2

Comment 9 Fedora Update System 2017-06-09 14:04:34 UTC
mariadb-10.1.24-3.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-2c0609b92a

Comment 10 Fedora Update System 2017-06-09 14:04:47 UTC
mariadb-10.1.24-3.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-09dd8907da

Comment 11 Fedora Update System 2017-06-10 12:31:29 UTC
mariadb-10.1.24-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-8425f676f2

Comment 12 Fedora Update System 2017-06-10 12:34:23 UTC
mariadb-10.1.24-3.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-2c0609b92a

Comment 13 Fedora Update System 2017-06-12 04:38:28 UTC
mariadb-10.1.24-3.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-09dd8907da

Comment 14 Fedora Update System 2017-06-16 13:17:33 UTC
mariadb-10.1.24-3.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2017-06-16 17:49:52 UTC
mariadb-10.1.24-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2017-06-16 18:51:44 UTC
mariadb-10.1.24-3.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 17 Michal Schorm 2017-06-16 23:43:47 UTC
Build reached stable repositories.