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

changefeed: error with 400 for nonexistent change_id #1264

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

riyazdf
Copy link
Contributor

@riyazdf riyazdf commented Nov 14, 2017

Check early that the change_id parameter exists for rethinkdb instead of returning a 500 on a query error.

Closes #1257

Signed-off-by: Riyaz Faizullabhoy riyaz.faizullabhoy@docker.com

Signed-off-by: Riyaz Faizullabhoy <riyaz.faizullabhoy@docker.com>
@endophage
Copy link
Contributor

I always figured the fix for this would be to default the change ID at the handler/input verification level, rather than erroring when not provided.

@riyazdf
Copy link
Contributor Author

riyazdf commented Nov 20, 2017

@endophage: that works too. Do you think "0" makes most sense, even in the context of rethinkdb?

@endophage
Copy link
Contributor

Yeah, and I also have a strong preference for making Go's "zero" values the defaults whenever possible.

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