Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: table catalog is not updated correctly during recovery #19265

Open
zwang28 opened this issue Nov 5, 2024 · 1 comment
Open

bug: table catalog is not updated correctly during recovery #19265

zwang28 opened this issue Nov 5, 2024 · 1 comment
Labels
type/bug Something isn't working
Milestone

Comments

@zwang28
Copy link
Contributor

zwang28 commented Nov 5, 2024

Describe the bug

etcd meta backend

  1. inject failure to trigger recovery
  2. trigger recovery
create table t(k int primary key, v int);
create table t2(k int primary key, v int);
create sink sk into t as select * from t2;
flush;
create sink sk2 into t as select * from t2;
flush;
create sink sk3 into t as select * from t2;
flush;
--- trigger injected panic. however sk4 is created successfully.
create sink sk4 into t as select * from t2;
--- after the cluster recover
--- fail: Streaming vnode mapping not found for fragment
insert into t values (1,1),(2,2);
  1. the fragment_id and dml_fragment_id of table t is outdated (corresponding to the version after sink sk3), which is inconsistent with select * from rw_fragments where table_id = xxx (corresponding to the version after sink sk4).
  2. sk4 is not in table t's incoming_sink, but sk4 fragment exists even after recovery.

Error message/log

No response

To Reproduce

No response

Expected behavior

No response

How did you deploy RisingWave?

No response

The version of RisingWave

No response

Additional context

No response

@zwang28 zwang28 added the type/bug Something isn't working label Nov 5, 2024
@github-actions github-actions bot added this to the release-2.2 milestone Nov 5, 2024
@zwang28
Copy link
Contributor Author

zwang28 commented Nov 5, 2024

@yezizp2012

I haven't confirmed whether the SQL meta backend is also affected by this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant