Skip to content

[Bug]: after restore, the result of mo_catalog.mo_pubs is not null. #16601

Closed

Description

@Ariznawlll

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main

Commit ID

2df0f9c

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

image

Expected Behavior

should be null

Steps to Reproduce

drop database if exists db01;
create database db01;
use db01;
drop table if exists table01;
create table table01(col1 int primary key , col2 decimal, col3 char, col4 varchar(20), col5 text, col6 double);
insert into table01 values (1, 2, 'a', '23eiojf', 'r23v324r23rer', 3923.324);
insert into table01 values (2, 3, 'b', '32r32r', 'database', 1111111);
drop table if exists table02;
create table table02 (col1 int unique key, col2 varchar(20));
insert into table02 (col1, col2) values (133, 'database');

drop snapshot if exists sp02;
create snapshot sp02 for account acc01;

drop publication if exists pub03;
create publication pub04 database db01 account acc01 comment 'create pub04';
-- @ignore:2,6
select * from mo_catalog.mo_pubs;
-- @ignore:2
show publications;

-- @session:id=1&user=acc01:test_account&password=111
drop database if exists sub04;
create database sub04 from sys publication pub04;
use sub04;
show create table table01;
select * from table02;
-- @session

restore account acc01 from snapshot sp02;   
-- @ignore:2,6
select * from mo_catalog.mo_pubs; -->出错位置

Additional information

No response

Activity

  1. added
    kind/bug
    severity/s0
    on Jun 3, 2024
  2. added this to the 1.2.1 milestone on Jun 3, 2024
  3. YANGGMM commented on Jun 4, 2024

    @YANGGMM
    Contributor

    fixed

  4. Ariznawlll commented on Jun 6, 2024

    @Ariznawlll
    CollaboratorAuthor

    verified

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