-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix limit change feed secondary index bug #6710
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
Conversation
…ffecting changefeed limit queries
|
Cherry-picked fix to next with 8f69b1c. |
|
Hello there, @srh! Is it possible to make a 2.3.7 version of rethinkdb with this fix? We have a pretty bad issue because of this, it is not so easy to rewrite queries because of our own data model provider |
|
Hi @atassis. It would be possible, though I think people are more interested in spending their energy releasing 2.4 right now. You could cherry-pick the commit yourself onto the v2.3.x branch and build it yourself (using these build instructions), and test whether it fixes the issue. |
|
Yep, we are going to build our own docker image for that after a little discussing. Thanks for your answer. |
|
Please let us know if it fixes the issue. |
|
Of course I will. |
|
The bug I fixed was when creating a new limit change feed. So you would have to create new limit change feeds, while writes are being performed. |
|
@atassis hi, is there any way that you could share the docker image with the fix compiled? |
|
@stellanhaglund You can compile your own RethinkDB 2.4 package using the setup.rb script (and Dockerfiles) at https://github.com/srh/rethinkdb-package-builder/ E.g. There is a list of distros in the setup.rb script. You will probably want Note that the HASH has to be a 9-digit commit hash prefix (exactly 9 digits). Probably the tip of v2.4.x is what you want. The Dockerfiles and such have -j7 hardcoded, which is probably fine. If you want to build a docker image and run RethinkDB inside that, well, you've got .deb packages for you, and you can figure out how best to create that. You could also download a bionic package at https://github.com/srh/rethinkdb/releases/tag/v2.4.0-srh-special-3 , if you're running Bionic. Edit: Changed link to v2.4.0-srh-special-3, now that that's out. |
|
E.g. base your dockerfile off of https://github.com/rethinkdb/rethinkdb-dockerfiles/blob/master/xenial/2.3.6/Dockerfile , just COPY in the .deb and install it instead of using apt-get. |
|
Okay, if you pull the latest master commit in rethinkdb-package-builder and pass |
|
@stellanhaglund I'll try to find our private registries image, but you can try to check the atassis/rethinkdb image on docker hub. I have only cherry picked the commit, should work more stable. There are troubles anyway with query queuing and performance, but at least it doesn't break and leak heavily. Still, recommend to mine on another database, because ours is using a lot of memory. Seemless changefeeds is a fairy tale. |
…ffecting changefeed limit queries
Description
Fixes a bug where a so-called "superblock" gets released too early. Affects behavior of limit change feeds defined on secondary indexes.
This might fix issue #6695.