Skip to content

[Bug]: Database PITR fails to replay publications containing an omitted FULLTEXT view #33510

Todo

Description

@Ariznawlll

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:

  1. Create base_t(id INT PRIMARY KEY, body TEXT) and insert (1,'hello').
  2. Create a FULLTEXT index on body.
  3. Create v_ft as a view using MATCH(body) AGAINST('hello').
  4. Create a publication selecting exactly base_t,v_ft for a subscriber account.
  5. From the subscriber on the second CN, create the subscription database and verify that both base_t and v_ft return row 1.
  6. Drop the FULLTEXT index so v_ft is unservable and must be omitted at restore.
  7. Preserve a valid PITR temporal precondition, then insert another post-restore-point row.
  8. 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:

  • 46309d9f341eec50037d95bb19fb81e871f8ece9ad2e575ea2ec4624c3c4115b
  • 7d89f9da1a04f86ec8edcb6437cf0a0a55b7b2759f00618d356b6dd753427022
  • 2fd847745effba8848b990005961cb547f280c1d53bb55bd5048e5aea30f9f7d

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

  1. added
    kind/bug
    on Nov 30, 2026
  2. added theissue type on Nov 30, 2026
  3. added this to the MO-202611 milestone on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugneeds-triage

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions