Repository navigation
Description
Branch and revision
Official main at c255da6778fac39bc53b5b9defaab3b6f945e4d6; both CN listeners returned this exact SHA through git_version().
The independently built mo-service SHA256 was 2eaddeaa961297dcb8df498c6abe47610ed16e1eca5ad35edb287538570f7ba0.
Summary
Database PITR fails while replaying a publication that explicitly includes a FULLTEXT-dependent view which must be omitted as unservable at the restore point. RESTORE itself returns 20101: table 'v_ft' not exists before publication/subscriber correctness can be checked.
This is the PITR boundary previously retained in #30610. The original database SNAPSHOT publication restoration roots pass 9/9 on the same revision.
Reproduction
For each round, create independent accounts, database, publication, subscription and PITR:
- Create
base_t(id INT PRIMARY KEY, body TEXT)and insert(1,'hello'). - Create a FULLTEXT index on
body. - Create
v_ftas a view usingMATCH(body) AGAINST('hello'). - Create a publication selecting exactly
base_t,v_ftfor a subscriber account. - From the subscriber on the second CN, create the subscription database and verify that both
base_tandv_ftreturn row 1. - Drop the FULLTEXT index so
v_ftis unservable and must be omitted at restore. - Preserve a valid PITR temporal precondition, then insert another post-restore-point row.
- Execute database PITR:
RESTORE DATABASE db FROM PITR pitr_name 'YYYY-MM-DD HH:MM:SS';Actual behavior
Three independent rounds all failed during RESTORE:
ERROR 20101: internal error: table 'v_ft' not exists
No failed round reached the post-restore assertions, and none was counted as a pass.
Round-log SHA256 values:
46309d9f341eec50037d95bb19fb81e871f8ece9ad2e575ea2ec4624c3c4115b7d89f9da1a04f86ec8edcb6437cf0a0a55b7b2759f00618d356b6dd7534270222fd847745effba8848b990005961cb547f280c1d53bb55bd5048e5aea30f9f7d
Strict probe SHA256: d424886b068ffb057c24454caa3024125a4c1d3e6250cff7cbe62e45499d56fd.
Expected behavior
PITR should restore base_t, deliberately omit the confirmed unservable v_ft, and replay the publication with only the servicable selected object (base_t). The subscriber should retain a working base_t subscription; querying the omitted view may fail, but RESTORE itself must not abort because publication replay still names an omitted view.
Source correlation
The database PITR publication replay calls createPubByPitr(..., nil) in pkg/frontend/pitr.go, rather than passing the confirmed omitted-view set used for unservable-view filtering. This matches the observed failure, but the report is based on the real SQL failure rather than source inspection alone.
Controls
The same revision passed 3 snapshot publication root tests ×3 (9/9), covering real subscribers, repeated restore, FK/view ordering, quoted identifiers, explicit/empty table sets, empty grants, case collisions, external tables and unservable FULLTEXT views. Snapshot success does not cover this PITR path.
Split from #30610 so the verified SNAPSHOT restoration fix can be closed while the independent PITR replay defect remains tracked here.
Activity