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

Bug 1192834: disable compact backups in 2.4 #392

Merged
merged 2 commits into from Jul 18, 2017

Conversation

gl-sergei
Copy link
Contributor

Merge test cases for bug 1192834, but disable them. Change compact.sh to check that --compact option no longer available.

There were several issues with compact backups:

1. Prepare failed on rollback and purge phases because secondary indexes
   are not rebuilt by the time of rollback/purge. Fixed by skipping
   rollback and purge for all secondary indexes.
2. Pages in buffer pool could mistakenly be marked as compacted and redo
   log would not be replayed on such pages which led to corrupt backups
   and crashes. Fixed by clearing `is_compacted' for every page read
   into the buffer pool.
3. Compacted pages which have been freed up and repurposed by server
   were not fully reset during prepare which let to corrupt backups.
4. Index rebuild process could start in parallel with rollback phase
   which led to crashes and corrupt backups. Fix makes sure that index
   rebuild process isn't started until rollback is fully complete.
Disable compact backups in 2.4

* 2.3-xb-bug1192834:
  Bug 1192834: Crash during apply with index compaction enabled
@gl-sergei
Copy link
Contributor Author

Copy link
Contributor

@VasilyNemkov VasilyNemkov left a comment

Choose a reason for hiding this comment

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

Mostly Ok, but please take a second look at the tests


. inc/common.sh

skip_test "Enable when bug #1192834 is fixed in 2.4"
Copy link
Contributor

Choose a reason for hiding this comment

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

If I get it right, this PR would fix the 1192834. Should we enable this test now?


. inc/common.sh

skip_test "Enable when bug #1192834 is fixed in 2.4"
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here, enable test?

@gl-sergei
Copy link
Contributor Author

gl-sergei commented Jul 17, 2017

I was going to mark bug 1192834 as "Won't fix" in 2.4. But was to going to keep the tests in case if we change our mind. The bug will still be valid for 2.4 even though one will not be able to take compact backup with 2.4, he can take the backup using 2.3 and crash 2.4

@gl-sergei gl-sergei merged commit dcb71ca into percona:2.4 Jul 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants