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

fix: retry Query streams #1116

Merged
merged 9 commits into from
Jun 10, 2020
Merged

fix: retry Query streams #1116

merged 9 commits into from
Jun 10, 2020

Conversation

schmidt-sebastian
Copy link
Contributor

This is one of the ideas I discussed with clem@ on how to make Query streams more robust. Basically, we can restart a stream with the last received document as the cursor.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 8, 2020
Copy link
Contributor

@wilhuff wilhuff left a comment

Choose a reason for hiding this comment

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

LGTM


let active = true;
while (active) {
const deferred = new Deferred<boolean>();
Copy link
Contributor

Choose a reason for hiding this comment

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

What condition does deferred represent? Naming this something that ties it to its meaning more than its type would be helpful. Based on my read it seems like maybe shouldRetry, retryRequired, or something like that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I merged this with the active flag and renamed to streamActive.

@wilhuff wilhuff assigned schmidt-sebastian and unassigned wilhuff Jun 8, 2020
@schmidt-sebastian schmidt-sebastian changed the base branch from mrschmidt/retryonabort to master June 10, 2020 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants