{"action":"created","issue":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4851","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4851/labels{/name}","comments_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4851/comments","events_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4851/events","html_url":"https://github.com/rethinkdb/rethinkdb/issues/4851","id":107046156,"number":4851,"title":"Changefeed results not correct on `.order_by` query (2.1.4, OS X)","user":{"login":"dalanmiller","id":863286,"avatar_url":"https://avatars.githubusercontent.com/u/863286?v=3","gravatar_id":"","url":"https://api.github.com/users/dalanmiller","html_url":"https://github.com/dalanmiller","followers_url":"https://api.github.com/users/dalanmiller/followers","following_url":"https://api.github.com/users/dalanmiller/following{/other_user}","gists_url":"https://api.github.com/users/dalanmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/dalanmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalanmiller/subscriptions","organizations_url":"https://api.github.com/users/dalanmiller/orgs","repos_url":"https://api.github.com/users/dalanmiller/repos","events_url":"https://api.github.com/users/dalanmiller/events{/privacy}","received_events_url":"https://api.github.com/users/dalanmiller/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"mlucy","id":1777134,"avatar_url":"https://avatars.githubusercontent.com/u/1777134?v=3","gravatar_id":"","url":"https://api.github.com/users/mlucy","html_url":"https://github.com/mlucy","followers_url":"https://api.github.com/users/mlucy/followers","following_url":"https://api.github.com/users/mlucy/following{/other_user}","gists_url":"https://api.github.com/users/mlucy/gists{/gist_id}","starred_url":"https://api.github.com/users/mlucy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlucy/subscriptions","organizations_url":"https://api.github.com/users/mlucy/orgs","repos_url":"https://api.github.com/users/mlucy/repos","events_url":"https://api.github.com/users/mlucy/events{/privacy}","received_events_url":"https://api.github.com/users/mlucy/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/milestones/19","html_url":"https://github.com/rethinkdb/rethinkdb/milestones/notabug","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/milestones/19/labels","id":299349,"number":19,"title":"notabug","description":"It's a feature. The issue describes a RethinkDB feature or design choice as if it was a bug.","creator":{"login":"AtnNn","id":706854,"avatar_url":"https://avatars.githubusercontent.com/u/706854?v=3","gravatar_id":"","url":"https://api.github.com/users/AtnNn","html_url":"https://github.com/AtnNn","followers_url":"https://api.github.com/users/AtnNn/followers","following_url":"https://api.github.com/users/AtnNn/following{/other_user}","gists_url":"https://api.github.com/users/AtnNn/gists{/gist_id}","starred_url":"https://api.github.com/users/AtnNn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AtnNn/subscriptions","organizations_url":"https://api.github.com/users/AtnNn/orgs","repos_url":"https://api.github.com/users/AtnNn/repos","events_url":"https://api.github.com/users/AtnNn/events{/privacy}","received_events_url":"https://api.github.com/users/AtnNn/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":110,"state":"closed","created_at":"2013-03-29T21:07:05Z","updated_at":"2015-09-17T22:42:26Z","due_on":null,"closed_at":"2013-05-13T23:08:44Z"},"comments":15,"created_at":"2015-09-17T18:37:07Z","updated_at":"2015-09-17T22:45:29Z","closed_at":"2015-09-17T22:42:22Z","body":"Maybe related to #4850 \r\n\r\nHave a table full of players and I'm grabbing a random sample of them, modifying their scores and updating them. Then going and inserting new players with scores set to 0. \r\n\r\n[Here is a quick video of the changefeed output.](https://www.dropbox.com/s/2tue7u5z2f7sg2j/changefeed_results_not_ordered.mov?dl=0)\r\n\r\nNotice at 0:13 that the `new_val` top document has a lower score than the `new_val` second place document and during the inserts phase the top results are the documents with `score: 0`.\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/comments/141258199","html_url":"https://github.com/rethinkdb/rethinkdb/issues/4851#issuecomment-141258199","issue_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4851","id":141258199,"user":{"login":"dalanmiller","id":863286,"avatar_url":"https://avatars.githubusercontent.com/u/863286?v=3","gravatar_id":"","url":"https://api.github.com/users/dalanmiller","html_url":"https://github.com/dalanmiller","followers_url":"https://api.github.com/users/dalanmiller/followers","following_url":"https://api.github.com/users/dalanmiller/following{/other_user}","gists_url":"https://api.github.com/users/dalanmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/dalanmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalanmiller/subscriptions","organizations_url":"https://api.github.com/users/dalanmiller/orgs","repos_url":"https://api.github.com/users/dalanmiller/repos","events_url":"https://api.github.com/users/dalanmiller/events{/privacy}","received_events_url":"https://api.github.com/users/dalanmiller/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T22:45:29Z","updated_at":"2015-09-17T22:45:29Z","body":"If the whole table `.order_by` is infeasible then I think that it should return a similar error to when you call `.changes()` on a `.order_by` without a specified index.\r\n\r\n```\r\ne: Cannot call `changes` on an eager stream in:\r\nr.db(\"test\").table(\"players\").orderBy(\"score\").changes()\r\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   \r\n```\r\n"}}