Skip to content

[Bug]: Restore from account1 to account2 failed #20144

Closed

Description

@DanielZhangQD

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

2.0-dev

Commit ID

v2.0.0-78f88591b-2024-11-17

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

Restore from a snapshot of account1 to account 2 failed:

mysql> restore account `01929da4-89af-7ed8-8f32-8df9ed5ddd71` FROM snapshot metadb202411181350 TO account `0192fbbb-bfb0-7d54-a2fe-b7fd26dbdb14`;

ERROR 1105 (HY000): You have an error in your SQL syntax; check the manual that corresponds to your MatrixOne server version for the right syntax to use. syntax error at line 1 column 25 near " lock";

Expected Behavior

Restore succeeds

Steps to Reproduce

See detail in Actual Behavior

Additional information

Cloud dev env

Activity

  1. added
    kind/bug
    severity/s0
    on Nov 18, 2024
  2. added this to the 2.0.1 milestone on Nov 18, 2024
  3. YANGGMM commented on Nov 19, 2024

    @YANGGMM
    Contributor

    fixed

  4. YANGGMM commented on Nov 19, 2024

    @YANGGMM
    Contributor

    @Ariznawlll The reason is that the table name and database name are keywords, and then an error is reported when the recovery is performed, please add a test for the table name and database name keywords.

  5. Ariznawlll commented on Nov 19, 2024

    @Ariznawlll
    Collaborator

    main与2.0-dev均验证通过

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugphase/testingseverity/s0

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions