a broken table can prevent other tables from opening
Bug #483714 reported by
Vladimir Kolesnikov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PBXT |
Fix Committed
|
Undecided
|
Vladimir Kolesnikov |
Bug Description
If some table has broken meta-data files (.frm or .dfe) then an attempt to open any PBXT table right after server start-up will fail. This happens because the code in xt_tab_init_db tries to pre-open all existing tables and fails on the broken table. An obvious fix would be to catch and ignore such errors.
PS
It is important to test the case of FK-linked tables.
Related branches
lp:~vkolesnikov/pbxt/pbxt-bug-483714
- Vladimir Kolesnikov (community): Needs Resubmitting
- Paul McCullagh: Needs Fixing
-
Diff: 238 lines (+58/-19)11 files modifiedChangeLog (+10/-0)
src/discover_xt.cc (+2/-2)
src/table_xt.cc (+12/-4)
test/mysql-test/r/binlog_stm_ctype_ucs.result (+2/-3)
test/mysql-test/r/ctype_cp932_binlog_stm.result (+6/-6)
test/mysql-test/r/ctype_recoding.result (+1/-1)
test/mysql-test/r/partition.result (+1/-1)
test/mysql-test/r/pbxt_bugs.result (+9/-0)
test/mysql-test/r/pbxt_ref_int.result (+1/-1)
test/mysql-test/t/pbxt_bugs.test (+12/-0)
test/mysql-test/t/pbxt_ref_int.test (+2/-1)
Changed in pbxt: | |
status: | New → Confirmed |
assignee: | nobody → Vladimir Kolesnikov (vkolesnikov) |
Changed in pbxt: | |
status: | Confirmed → In Progress |
Changed in pbxt: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
We could just log the failure. But as you say, if the table is has a foreign key then we would not know this. Cascaded operations would not be performed.
In addition, if the table is required for recovery, then recovery cannot be performed.