Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix cursor recovery during export #133

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

Merged

Conversation

alexa-infra
Copy link
Contributor

Motivation
During export table if connection breaks, then it tries to restore the cursor by using between operation. But there is a simple rql syntax error and it raises the following exception:

rethinkdb.errors.ReqlQueryLogicError: Cannot use `null` in BETWEEN, use `r.minval` or `r.maxval` to denote unboundedness in... 

Description
None is incorrect param for between operation, so it should be r.maxval for the right bound. Note, it's quite hard to provide a unit-test for this functionality

it should be r.maxval for the right bound
@gabor-boros
Copy link
Member

Nice catch!

@gabor-boros gabor-boros merged commit 54d3200 into rethinkdb:master Aug 21, 2019
@alexa-infra alexa-infra deleted the fix-export-cursor-recovery branch September 2, 2019 06:43
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