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

sink decouple panics #12650

Closed
wenym1 opened this issue Oct 7, 2023 · 0 comments · Fixed by #12698
Closed

sink decouple panics #12650

wenym1 opened this issue Oct 7, 2023 · 0 comments · Fixed by #12698
Labels
type/bug Something isn't working
Milestone

Comments

@wenym1
Copy link
Contributor

wenym1 commented Oct 7, 2023

Describe the bug

Create a blackhole sink with sink_decouple enabled panics.

Error message/log

No response

To Reproduce

./risedev d and connect with psql

CREATE source s1 (seq_id bigint, user_id bigint,
  user_name varchar)
WITH (
     connector = 'datagen',
     fields.seq_id.kind = 'sequence',
     fields.seq_id.start = '1',
     fields.seq_id.end = '10000000',
     fields.user_id.kind = 'random',
     fields.user_id.min = '1',
     fields.user_id.max = '10000000',
     fields.user_name.kind = 'random',
     fields.user_name.length = '10',
     datagen.rows.per.second = '100000'
 ) format plain encode json;
set sink_decouple=true;
create sink sink from s1 with (connector = 'blackhole');

It panics soon with

thread 'risingwave-compaction' panicked at src/storage/src/hummock/compactor/shared_buffer_compact.rs:405:13:
assertion failed: epoch < earliest_range_delete_which_can_see_key &&\n    earliest_range_delete_which_can_see_key < pivot_last_delete_epoch

After disable merge imm, it panics with

thread 'risingwave-compaction' panicked at src/storage/src/hummock/compactor/compactor_runner.rs:800:13:
assertion failed: iter_key.epoch < earliest_range_delete_which_can_see_iter_key &&\n    earliest_range_delete_which_can_see_iter_key < user_key_last_delete_epoch

After change both debug_assert condition from < to <=, it panics with

thread 'risingwave-compaction' panicked at src/storage/src/hummock/sstable/block.rs:473:13:
assertion `left == right` failed: epoch: 5204850519048192, table key: 18014398819715250
  left: Equal
 right: Less

Expected behavior

No response

How did you deploy RisingWave?

No response

The version of RisingWave

git commit e53c9f7

Additional context

No response

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
2 participants