-
Notifications
You must be signed in to change notification settings - Fork 574
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: multiple reads in source's internal table #5590
Comments
|
After #5907, we will panic at Actually, it's a little bit tricky to get the correct result. If we schedule multiple tasks, we'll get duplicated rows as there's no way to prune the distribution. If we schedule a single task, then it may behave strangely with #5850. |
reopen this issue because the case is still there Just checked on the latest main (25f6655) |
There seems something wrong with the distribution of |
To provide some context, the distribution for BatchSeqScan on non-system tables is risingwave/src/frontend/src/optimizer/plan_node/batch_seq_scan.rs Lines 258 to 261 in 1d2bb32
By making the distribution If risingwave/src/frontend/src/scheduler/plan_fragmenter.rs Lines 527 to 532 in 9f64e93
Is it correct to assume that each worker thread should scan independent partitions? And if so, there should be no duplicated results, even if |
Yes, I think this is caused by incorrect vnode mapping for internal table, and I'll take a look at this. |
any updates? |
I'll look into this recently. |
Any updates? |
Will look into it later. |
close as no updates |
Describe the bug
write one row in state table and it read multiple identical rows when select * from the internal table
this issue is introduced in #5433
To Reproduce
./risedev d full
&./scripts/source/prepare_ci_kafka.sh
)create table s2 (v1 int, v2 varchar) with ( connector = 'kafka', topic = 'kafka_2_partition_topic', properties.bootstrap.server = '127.0.0.1:29092', scan.startup.mode = 'earliest') row format json;
__internal_s2_2_sourceinternaltable_1003
Expected behavior
1 row
Additional context
None
The text was updated successfully, but these errors were encountered: