-
Notifications
You must be signed in to change notification settings - Fork 590
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: panic when create sink into an APPEND ONLY table without pk with watermark #16836
Comments
it seems that all the replace table issue can trigger this problem
|
discuss offline with @ st1page, The read_version involved in batch read has not been destroyed yet, but the new read_version has been registered. (The disorder of register and destroy seems to be the cause of the problem) |
I have checked that the issue does not happen when the table fragment's parallelism is 1. It is because some actors received the configure change barrier before others. |
remove the assert and see the log. The read version registry and new actor's read are before the destroy if read_version_vec.len() != 1 {
let read_version_vnodes = vec![0];
// read_version_vec
// .into_iter()
// .map(|v| {
// let v = v.read();
// v.vnodes().iter_ones().collect_vec()
// })
// .collect_vec();
tracing::warn!("There are {} read version associated with vnode {}. read_version_vnodes={:?}", read_version_vnodes.len(), vnode.to_index(), read_version_vnodes);
} dev=> set streaming_parallelism=2;
SET_VARIABLE
dev=> CREATE TABLE t (
index int ,
time timestamptz,
WATERMARK FOR time AS time - INTERVAL '5' SECOND
) APPEND ONLY;
NOTICE: APPEND ONLY TABLE is currently an experimental feature.
CREATE_TABLE
dev=> alter table t add column a int;
ALTER_TABLE
|
The case is a little special because
|
compute node log:
The text was updated successfully, but these errors were encountered: