You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug#26974491 FIXES DATA RESTORE WITH DISABLE INDEXES
Fixes ndb_restore to drop foreign keys when used with the
option, --disable-indexes.
When metadata restore was done with --disable-indexes, there
was no attempt to create indexes or foreign keys dependent on
them. But, when ndb_restore was used without --disable-indexes
during metadata restore, indexes and foreign keys were created.
When the same option was used later while data restore, there
was an attempt to drop the indexes created in the previous step.
But, it ignored the failure of drop index step whenever there
was a foreign key dependent on the index and there was no
attempt to drop the foreign keys in the first place. This
caused problems while rebuilding indexes when there was an
attempt to create foreign keys which already exist.
So, ndb_restore is fixed
1) To actively drop the restored foreign keys described in
the backup when --disable-indexes is set.
2) To check for the existence of indexes before they are
attempted to be dropped.
The checks have been added so that data node restores with
--disable-indexes option for subsequent data nodes doesn't
attempt to drop the non existent indexes.
Also, ndb_fk_restore test has been updated with all the use
cases involving all the possible combinations of options,
--disable-indexes and --rebuild-indexes.
Change-Id: I4e9ced7df74a083ce1b0fbfcf584810a83c4d19c
0 commit comments