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

Fix PS-4723 (PURGE CHANGED_PAGE_BITMAPS doesn't work when innodb_data_home_dir used) (5.7) #2547

Conversation

percona-ysorokin
Copy link
Collaborator

No description provided.

@percona-ysorokin
Copy link
Collaborator Author

Copy link
Contributor

@laurynas-biveinis laurynas-biveinis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question as for the 5.6 PR

…ta_home_dir used)

https://jira.percona.com/browse/PS-4723

'PURGE CHANGED_PAGE_BITMAPS' InnoDB handler
('log_online_purge_changed_page_bitmaps()') used to call
'os_file_delete_if_exists()' for deleting old '.xdb' files using relative
paths. Therefore, when '--innodb-data-home-dir' was different from
'--datadir'(which is by default the current working directory), it tried to
delete these file from the wrong location.

Fixed by prepending '.xdb' file name with 'log_bmp_sys->bmp_file_home' in
the case when redo log tracking is enabled or with 'srv_data_home' otherwise.

'innodb.percona_changed_page_bmp_requests_debug' MTR test case extendes with
a new section which simulates the reported scenario.
@percona-ysorokin percona-ysorokin force-pushed the ps-5.7-bugps4723-purge_changed_page_bitmaps branch from 88395a9 to 89b68e6 Compare September 13, 2018 14:42
@percona-ysorokin
Copy link
Collaborator Author

Removed --innodb-file-per-table=0 option along with assertion from the second (non-tracking) restart.
Jenkins build link
https://ps.cd.percona.com/job/percona-server-5.7-param/67/ (single test run innodb.percona_changed_page_bmp_requests_debug --repeat=2)

@percona-ysorokin percona-ysorokin merged commit 24c9f3f into percona:5.7 Sep 14, 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.

2 participants