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

Ordered consumer recreate & mem_storage R1 #654

Merged
merged 8 commits into from
Oct 14, 2022

Conversation

Jarema
Copy link
Member

@Jarema Jarema commented Oct 2, 2022

@Jarema Jarema changed the title Jarema/ordered recreate mem r1 Ordered consumer recreate & mem_storage R1 Oct 2, 2022
@Jarema Jarema requested a review from caspervonb October 3, 2022 08:31
@Jarema Jarema marked this pull request as ready for review October 3, 2022 08:31
@Jarema Jarema force-pushed the jarema/ordered-recreate-mem-r1 branch from 01a6c38 to fc82ec8 Compare October 3, 2022 08:31
let last_sequence = Arc::new(AtomicU64::new(0));
let consumer_sequence = Arc::new(AtomicU64::new(0));
let (shutdown_tx, shutdown_rx) = tokio::sync::oneshot::channel();
tokio::task::spawn({
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this have to run out of band?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If consumer will be deleted on the server, client will get no messages, nor nothing will be additionaly polled.

So I'm afraid yes - we need this in a task.

Copy link
Collaborator

@caspervonb caspervonb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Jarema Jarema merged commit 8b31346 into main Oct 14, 2022
@Jarema Jarema deleted the jarema/ordered-recreate-mem-r1 branch October 14, 2022 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants