-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat(logstore): handle paused stream #20511
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
9c3f223
to
aa35e12
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM
@@ -430,6 +451,9 @@ impl<S: StateStoreRead> ReadFuture<S> { | |||
*self = ReadFuture::Idle; | |||
} | |||
ReadFuture::ReadingFlushedChunk { .. } | ReadFuture::Idle => {} | |||
ReadFuture::Paused => { | |||
unreachable!("should not be polled after paused") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can just move the return pending().await
at the beginning to here to avoid an extra match.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@@ -260,6 +260,7 @@ impl<S: StateStore> SyncedKvLogStoreExecutor<S> { | |||
new_log_store_state(self.table_id, local_state_store, self.serde); | |||
initial_write_state.init(first_write_epoch).await?; | |||
|
|||
let mut pause_stream = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May set the initial value as barrier.is_pause_on_startup()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
aa35e12
to
78b0623
Compare
78b0623
to
78df558
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
80359d9
to
52d2229
Compare
52d2229
to
d318c81
Compare
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Checklist
Documentation
Release note