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

Drop subscription on object read done #1011

Merged
merged 1 commit into from
Jul 4, 2023
Merged

Conversation

Jarema
Copy link
Member

@Jarema Jarema commented Jul 1, 2023

A quick fix for ordered push consumer not being dropped as soon as object from Object Store is read.
Object might be valid for quite some time, so the subscription is running for no reason.

@Jarema Jarema force-pushed the jarema-drop-ordered-on-done branch from 650395a to a91398d Compare July 2, 2023 06:43
@caspervonb caspervonb self-requested a review July 2, 2023 08:41
@Jarema Jarema force-pushed the jarema-drop-ordered-on-done branch from a91398d to 38180ef Compare July 3, 2023 11:53
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.

Not sure if we end up with unsound state here.

))),
},
Poll::Pending => Poll::Pending,
None => Poll::Ready(Err(std::io::Error::new(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we gracefully try to recover from this?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think that if the ordered consumer underneath cannot recover, this should not try either.

@Jarema Jarema marked this pull request as ready for review July 4, 2023 11:26
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 e71f72d into main Jul 4, 2023
13 checks passed
@Jarema Jarema deleted the jarema-drop-ordered-on-done branch July 4, 2023 13:05
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