Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PS-4711: crash on TokuDB PFS-instrumented mutexes deinitialization #414

Merged
merged 1 commit into from
Aug 13, 2018

Conversation

vlad-lesin
Copy link
Contributor

shutdown_performance_schema() is always invoked before exit(), what means
global mutexes are always destroyed after perfomance schema shutdown, what
causes SIGFAULT on some platforms(debian wheeze in particular).

For PerconaFT layer the fix is in invoking ydb-layer deinitialization function
explicitly from storage engine shutdown function. But the same function is also
invoked on library unload, see libtokuft_destroy(). The certain flag is used to
avoid invoking ydb-layer deinitialization function twice.

Testing:
https://jenkins.percona.com/view/5.7/job/mysql-5.7-param/1891/

See also: percona/percona-server#2479

shutdown_performance_schema() is always invoked before exit(), what means
global mutexes are always destroyed after perfomance schema shutdown, what
causes SIGFAULT on some platforms(debian wheeze in particular).

For PerconaFT layer the fix is in invoking ydb-layer deinitialization function
explicitly from storage engine shutdown function. But the same function is also
invoked on library unload, see libtokuft_destroy(). The certain flag is used to
avoid invoking ydb-layer deinitialization function twice.
@vlad-lesin vlad-lesin merged commit ccc48c9 into percona:master Aug 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants