{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1277","repository_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1277/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1277/comments","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1277/events","html_url":"https://github.com/couchbase/couchbase-lite-ios/issues/1277","id":159061092,"number":1277,"title":"Push replication creating conflicting revisions","user":{"login":"sethrosetter","id":1365736,"avatar_url":"https://avatars.githubusercontent.com/u/1365736?v=3","gravatar_id":"","url":"https://api.github.com/users/sethrosetter","html_url":"https://github.com/sethrosetter","followers_url":"https://api.github.com/users/sethrosetter/followers","following_url":"https://api.github.com/users/sethrosetter/following{/other_user}","gists_url":"https://api.github.com/users/sethrosetter/gists{/gist_id}","starred_url":"https://api.github.com/users/sethrosetter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethrosetter/subscriptions","organizations_url":"https://api.github.com/users/sethrosetter/orgs","repos_url":"https://api.github.com/users/sethrosetter/repos","events_url":"https://api.github.com/users/sethrosetter/events{/privacy}","received_events_url":"https://api.github.com/users/sethrosetter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-08T01:37:08Z","updated_at":"2016-06-08T01:44:08Z","closed_at":null,"body":"\r\n--------\r\n* Version:   Sync Gateway 1.3.0-183\r\n* Client OS: Mac OSX LiteServ 1.3.0-17\r\n* Server:    walrus\r\n\r\nSteps to repro\r\n\r\nsync_gateway has revs_limit of 70\r\n\r\n1. Create a liteserv database and add 10 docs\r\n1. Create a continuous push replication liteserv db -> sync_gateway db\r\n1. After all docs have replicated to sync_gateway, update the docs 100 times on sync_gateway\r\n1. Update the docs on liteserv 100 times\r\n\r\nAfter this I am seeing the following\r\n\r\n### LiteServ 1.2.1-13\r\n`http http://localhost:59840/ls_db/ls_db_7\\?open_revs\\=all`\r\n```\r\nHTTP/1.1 200 OK\r\nAccept-Ranges: bytes\r\nCache-Control: must-revalidate\r\nContent-Length: 526\r\nContent-Type: multipart/mixed; boundary=\"569C6699-584B-4155-8F65-D483342A67FB\"\r\nDate: Wed, 08 Jun 2016 01:30:41 GMT\r\nServer: CouchbaseLite 1.2.1 (build 13)\r\n\r\n--569C6699-584B-4155-8F65-D483342A67FB\r\nContent-Length: 387\r\nContent-Type: application/json\r\n\r\n{\"ok\":{\"list_of_dicts\":[{\"friend_one\":\"XcFxvKOdeu\"},{\"friend_two\":\"ukugBvawno\"}],\"random\":\"1f6a2b27-0838-43a4-a915-366e3940c0f6\",\"_id\":\"ls_db_7\",\"channels\":[\"NBC\"],\"_rev\":\"101-4e1495fbe2d7a9f3549469d422c5c6ee\",\"date_time_added\":\"2016-06-07 18:30:21.706761\",\"dict_with_list\":{\"list\":[true,false]},\"list\":[17756788645389044,3129070538635667000],\"updates\":100,\"dict\":{\"name\":\"MoaCUQtiqq\"}}}\r\n--569C6699-584B-4155-8F65-D483342A67FB--\r\n```\r\n\r\n### Sync Gateway\r\n`http http://192.168.0.111:4985/db/ls_db_7\\?open_revs\\=all`\r\n```\r\nHTTP/1.1 200 OK\r\nContent-Encoding: gzip\r\nContent-Length: 821\r\nContent-Type: multipart/mixed; boundary=\"2e5bf5596e34ea85281a9f58eaab2a5304fc17418b55d17ac821cdd0acb0\"\r\nDate: Tue, 07 Jun 2016 12:04:28 GMT\r\nServer: Couchbase Sync Gateway/1.3.0\r\n\r\n--2e5bf5596e34ea85281a9f58eaab2a5304fc17418b55d17ac821cdd0acb0\r\nContent-Type: application/json\r\n\r\n{\"_id\":\"ls_db_7\",\"_rev\":\"101-4e1495fbe2d7a9f3549469d422c5c6ee\",\"_revisions\":{\"ids\":[\"4e1495fbe2d7a9f3549469d422c5c6ee\",\"d83b57db0c2ca351ecd56757385cba0c\",\"47ff0ba9be2a87008e41641f1da97854\",\"ab8a7f867467a97f56083a0241d09907\",\"860d53bc6730faa3a9b969da1babf883\",\"509f9a8c20ef29b593d08d1bf7911d15\",\"5e53263bcb857227d8dfbb424cd6f72c\",\"a0dd725020c3d31c0a1839778a0844f2\",\"c112f2623c043fbd73341ae6c21a29c4\",\"3a4409c69d7f3c726dda7a3b8b566493\",\"fa0905fa80fc40341305eda215d36d24\",\"76055be3dc733b40bb34feed54837d35\",\"e19ae132ae5c2986c6c5d45852e40cea\",\"8e5c927f79dd1350274fb461878a700d\",\"c47bff21bfa812d00b7b55d0f650ed08\",\"2178478f3dc1037479ec51ab03acdd98\",\"3b6717d4894703e10473c312a8699553\"],\"start\":101},\"channels\":[\"NBC\"],\"date_time_added\":\"2016-06-07 18:30:21.706761\",\"dict\":{\"name\":\"MoaCUQtiqq\"},\"dict_with_list\":{\"list\":[true,false]},\"list\":[1.7756788645389044e+16,3.129070538635667e+18],\"list_of_dicts\":[{\"friend_one\":\"XcFxvKOdeu\"},{\"friend_two\":\"ukugBvawno\"}],\"random\":\"1f6a2b27-0838-43a4-a915-366e3940c0f6\",\"updates\":100}\r\n--2e5bf5596e34ea85281a9f58eaab2a5304fc17418b55d17ac821cdd0acb0\r\nContent-Type: application/json\r\n\r\n{\"_id\":\"ls_db_7\",\"_rev\":\"101-77eec3f233008e7cb2403b5ccf124831\",\"_revisions\":{\"ids\":[\"37a60b7b8891868ad059b0c819416137\"],\"start\":1},\"channels\":[\"NBC\"],\"date_time_added\":\"2016-06-07 18:30:21.706761\",\"dict\":{\"name\":\"MoaCUQtiqq\"},\"dict_with_list\":{\"list\":[true,false]},\"list\":[1.7756788645389044e+16,3.129070538635667e+18],\"list_of_dicts\":[{\"friend_one\":\"XcFxvKOdeu\"},{\"friend_two\":\"ukugBvawno\"}],\"random\":\"6f0f3a3d-9987-4120-b223-4f394774ab2b\",\"updates\":100}\r\n--2e5bf5596e34ea85281a9f58eaab2a5304fc17418b55d17ac821cdd0acb0--\r\n\r\n```\r\n\r\n\r\n### LiteServ 1.3.0-17\r\n`http http://localhost:59840/ls_db/ls_db_7\\?open_revs\\=all`\r\n```\r\n{\"ok\":{\"list_of_dicts\":[{\"friend_one\":\"QFsXhIxgKT\"},{\"friend_two\":\"yhgVBlUJTX\"}],\"random\":\"cf12bf7b-7d46-499e-983b-c21e69f5bb5c\",\"_id\":\"ls_db_7\",\"channels\":[\"NBC\"],\"_rev\":\"101-7ef03be439b5aac1b1d6e64cc95973ab\",\"date_time_added\":\"2016-06-07 18:27:07.924581\",\"dict_with_list\":{\"list\":[false,true]},\"list\":[3417039979475850000,7528059530436006000],\"updates\":100,\"dict\":{\"name\":\"iecUCNeeqp\"}}}\r\n--6C233C1B-B1F4-4E9C-A8CB-CA55229BBBCB--\r\n```\r\n\r\n### Sync Gateway\r\n`http http://192.168.0.111:4985/db/ls_db_7\\?open_revs\\=all`\r\n```\r\nHTTP/1.1 200 OK\r\nContent-Encoding: gzip\r\nContent-Length: 1639\r\nContent-Type: multipart/mixed; boundary=\"7fe157da71da5f4f7bcc3e40d9b3a2493c4d09cb02f3bfa688ae012dde6a\"\r\nDate: Tue, 07 Jun 2016 12:02:07 GMT\r\nServer: Couchbase Sync Gateway/1.3.0\r\n\r\n--7fe157da71da5f4f7bcc3e40d9b3a2493c4d09cb02f3bfa688ae012dde6a\r\nContent-Type: application/json\r\n\r\n{\"_id\":\"ls_db_7\",\"_rev\":\"101-ef7d31d6f09585d2190031fc8b0a49b9\",\"_revisions\":{\"ids\":[\"99cedf986a559137362a0a49e63644b9\"],\"start\":1},\"channels\":[\"NBC\"],\"date_time_added\":\"2016-06-07 18:27:07.924581\",\"dict\":{\"name\":\"iecUCNeeqp\"},\"dict_with_list\":{\"list\":[false,true]},\"list\":[3.41703997947585e+18,7.528059530436007e+18],\"list_of_dicts\":[{\"friend_one\":\"QFsXhIxgKT\"},{\"friend_two\":\"yhgVBlUJTX\"}],\"random\":\"429986cd-b531-490d-ab14-2037a7115711\",\"updates\":100}\r\n--7fe157da71da5f4f7bcc3e40d9b3a2493c4d09cb02f3bfa688ae012dde6a\r\nContent-Type: application/json\r\n\r\n{\"_id\":\"ls_db_7\",\"_rev\":\"79-ffb0dc1f5a9751bae7904926b279e644\",\"_revisions\":{\"ids\":[\"ffb0dc1f5a9751bae7904926b279e644\",\"a646b8a228c908a03dc0e038ec5da9e3\",\"8e9fd0adc06d70ca69f69ed62a7e2a07\",\"306d2f7396d9c99797652f36f8275dfb\",\"a336a49599377fef08acfbb5d0322f66\",\"785fb0f206fa7b961b37043a4261344e\",\"0c3a224a7cf6e2a53339663d91eb2d9f\",\"15bbf423507c62891ab1ca8fda0fe0c7\",\"a2792e6b72256c419fa1d09ed9ce99ac\",\"252081da540549cd9118b41c59bba153\"],\"start\":79},\"channels\":[\"NBC\"],\"date_time_added\":\"2016-06-07 18:27:07.924581\",\"dict\":{\"name\":\"iecUCNeeqp\"},\"dict_with_list\":{\"list\":[false,true]},\"list\":[3.41703997947585e+18,7.528059530436006e+18],\"list_of_dicts\":[{\"friend_one\":\"QFsXhIxgKT\"},{\"friend_two\":\"yhgVBlUJTX\"}],\"random\":\"d86fd3a0-2f32-40ec-b67b-2e348deffcc0\",\"updates\":78}\r\n--7fe157da71da5f4f7bcc3e40d9b3a2493c4d09cb02f3bfa688ae012dde6a\r\nContent-Type: application/json\r\n\r\n{\"_id\":\"ls_db_7\",\"_rev\":\"58-478af55951174a6a0dfcffc25dc76ee7\",\"_revisions\":{\"ids\":[\"478af55951174a6a0dfcffc25dc76ee7\",\"a52a051d1b4ba90395ce2471267cc087\",\"25f44d5162b36e519b3fa1b3b9d687fe\",\"b05917fed8ebbb5fbeb25b0573e6f6f0\",\"ad956ded0996b0fbbc06b26aa125c7b5\",\"a91e8699a6726c4ef7e05b8e7c1809dc\",\"4ef01f789ecb155c52c9ef161ea98588\",\"d9d47d054e8e6655be4fc81bc2024ada\",\"20afe63fd8756ae7b6cd4fc97ebbeb68\",\"7180ba38bfab8d58d8fc06cd2672ced3\",\"7e91a8b24eb5013b281caab50326bd60\",\"55773e0d2505cb4d8a7cf7349e606857\",\"f29a93e780e21091af78ecf7def2f8d8\"],\"start\":58},\"channels\":[\"NBC\"],\"date_time_added\":\"2016-06-07 18:27:07.924581\",\"dict\":{\"name\":\"iecUCNeeqp\"},\"dict_with_list\":{\"list\":[false,true]},\"list\":[3.41703997947585e+18,7.528059530436006e+18],\"list_of_dicts\":[{\"friend_one\":\"QFsXhIxgKT\"},{\"friend_two\":\"yhgVBlUJTX\"}],\"random\":\"717031ea-6b7f-4984-a791-3e3dbe4e9f13\",\"updates\":57}\r\n--7fe157da71da5f4f7bcc3e40d9b3a2493c4d09cb02f3bfa688ae012dde6a\r\nContent-Type: application/json\r\n\r\n{\"_id\":\"ls_db_7\",\"_rev\":\"69-fb7aa80381758b399add4bc8dee43f63\",\"_revisions\":{\"ids\":[\"fb7aa80381758b399add4bc8dee43f63\",\"074423d6af5a8e2d44245d6844e386f9\",\"29a18ae385ece9dedeb769e9a9f736a0\",\"b66571f1ffe3c2c18539408866025eb0\",\"bfa325065c01d676e5f459ead47a4546\",\"0f906ecced905cb35171c7dd990c30ce\",\"36fd3d912ee2a6b1862dd7e4051b8a56\",\"e256ea3b98d7a960d39936ddaf7d5672\",\"8ec69abdc6ea4af33b9a2fc8379751f2\",\"5488c9747132db72bb9b583a8efbc96e\",\"936d3e6bdd06edddfff39e3c2710c1b4\"],\"start\":69},\"channels\":[\"NBC\"],\"date_time_added\":\"2016-06-07 18:27:07.924581\",\"dict\":{\"name\":\"iecUCNeeqp\"},\"dict_with_list\":{\"list\":[false,true]},\"list\":[3.41703997947585e+18,7.528059530436006e+18],\"list_of_dicts\":[{\"friend_one\":\"QFsXhIxgKT\"},{\"friend_two\":\"yhgVBlUJTX\"}],\"random\":\"86fa8618-fd98-42f8-974d-e815d339d2a3\",\"updates\":68}\r\n--7fe157da71da5f4f7bcc3e40d9b3a2493c4d09cb02f3bfa688ae012dde6a\r\nContent-Type: application/json\r\n\r\n{\"_id\":\"ls_db_7\",\"_rev\":\"101-7ef03be439b5aac1b1d6e64cc95973ab\",\"_revisions\":{\"ids\":[\"7ef03be439b5aac1b1d6e64cc95973ab\",\"903085a5230611c6d38aef7ee50475b9\",\"420cd392ff1f7bd48ab3c596a3088c89\",\"6e4d91693ae12a7c6651834f0e542ee6\",\"d70f74e63e600081d6a020bdca640ae4\",\"9babc9b4fe884e9c8bfc6bead5f5d682\",\"b125ccd5fa1f65f33f0c7b676671bd25\",\"a2a97f9803159a4a4608f38f49390ba0\",\"c1ff30f46d72f50f4f496efbfb280a95\",\"8a1ba3edddf2766cf0d5935f3d686661\",\"0cdf6ab4bdf0450f9f8a1c5c934e1441\",\"b738eb320fd1532e9e03500ecb1424ad\",\"8d404c5f4a49ccb3044017b62f1c449c\",\"a9a7d237be71e8e2bb089fe849e59c47\",\"e52b7b29264098d0bc18b0c9b8dce180\",\"e4644f8300c99a1d5fd2b0e98db23953\"],\"start\":101},\"channels\":[\"NBC\"],\"date_time_added\":\"2016-06-07 18:27:07.924581\",\"dict\":{\"name\":\"iecUCNeeqp\"},\"dict_with_list\":{\"list\":[false,true]},\"list\":[3.41703997947585e+18,7.528059530436006e+18],\"list_of_dicts\":[{\"friend_one\":\"QFsXhIxgKT\"},{\"friend_two\":\"yhgVBlUJTX\"}],\"random\":\"cf12bf7b-7d46-499e-983b-c21e69f5bb5c\",\"updates\":100}\r\n--7fe157da71da5f4f7bcc3e40d9b3a2493c4d09cb02f3bfa688ae012dde6a--\r\n```\r\n\r\nExpected: 1.2.1 behavior. 1 open rev on liteserv and 2 open revs on sync_gateway due to a conflict\r\nActual: I see 1 open rev on liteserv and more than 2 open revs on sync_gateway       \r\n"},"comment":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/comments/224464461","html_url":"https://github.com/couchbase/couchbase-lite-ios/issues/1277#issuecomment-224464461","issue_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/1277","id":224464461,"user":{"login":"sethrosetter","id":1365736,"avatar_url":"https://avatars.githubusercontent.com/u/1365736?v=3","gravatar_id":"","url":"https://api.github.com/users/sethrosetter","html_url":"https://github.com/sethrosetter","followers_url":"https://api.github.com/users/sethrosetter/followers","following_url":"https://api.github.com/users/sethrosetter/following{/other_user}","gists_url":"https://api.github.com/users/sethrosetter/gists{/gist_id}","starred_url":"https://api.github.com/users/sethrosetter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethrosetter/subscriptions","organizations_url":"https://api.github.com/users/sethrosetter/orgs","repos_url":"https://api.github.com/users/sethrosetter/repos","events_url":"https://api.github.com/users/sethrosetter/events{/privacy}","received_events_url":"https://api.github.com/users/sethrosetter/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T01:44:08Z","updated_at":"2016-06-08T01:44:08Z","body":"The steps are sequential\r\n- Update sg docs\r\n- THEN update ls docs\r\n\r\nThis is SQLite."}}
{"actor":{"display_login":"sethrosetter"}}