{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/sync_gateway/issues/3381","repository_url":"https://api.github.com/repos/couchbase/sync_gateway","labels_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/3381/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/3381/comments","events_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/3381/events","html_url":"https://github.com/couchbase/sync_gateway/issues/3381","id":307744259,"number":3381,"title":"LiteCore <-> Sync Gateway replication test failure","user":{"login":"tleyden","id":296876,"avatar_url":"https://avatars1.githubusercontent.com/u/296876?v=4","gravatar_id":"","url":"https://api.github.com/users/tleyden","html_url":"https://github.com/tleyden","followers_url":"https://api.github.com/users/tleyden/followers","following_url":"https://api.github.com/users/tleyden/following{/other_user}","gists_url":"https://api.github.com/users/tleyden/gists{/gist_id}","starred_url":"https://api.github.com/users/tleyden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tleyden/subscriptions","organizations_url":"https://api.github.com/users/tleyden/orgs","repos_url":"https://api.github.com/users/tleyden/repos","events_url":"https://api.github.com/users/tleyden/events{/privacy}","received_events_url":"https://api.github.com/users/tleyden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-22T17:32:58Z","updated_at":"2018-03-22T18:17:51Z","closed_at":null,"author_association":"COLLABORATOR","body":"\r\n## Steps to repro\r\n\r\nSame as https://github.com/couchbase/sync_gateway/issues/3286\r\n\r\nwith versions:\r\n\r\n- SG commit 0d125378d8ddf989bc9247deaabecf6c6f945c62 (off dev branch)\r\n- LiteCore commit e31a03cb220a6cbfdd38e511b506a4c8f885c76f (recent master commit)\r\n\r\n## Failure msg\r\n\r\n```\r\n\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nC4Tests is a Catch v1.5.6 host application.\r\nRun with -? for options\r\n\r\n-----------------------------------------------------------------------------------------------------------------------\r\nUpdate Once-Conflicted Doc\r\n-----------------------------------------------------------------------------------------------------------------------\r\n/Users/tleyden/Development/couchbase-lite-ios/vendor/couchbase-lite-core/Replicator/tests/ReplicatorAPITest.cc:384\r\n.......................................................................................................................\r\n\r\n/Users/tleyden/Development/couchbase-lite-ios/vendor/couchbase-lite-core/Replicator/tests/ReplicatorAPITest.cc:401: FAILED:\r\n  CHECK( doc->revID == ((C4Slice){(\"\" \"2-bbbb\"), sizeof((\"\" \"2-bbbb\"))-1}) )\r\nwith expansion:\r\n  slice[\"3-dddd\"] == slice[\"2-bbbb\"]\r\n\r\n/Users/tleyden/Development/couchbase-lite-ios/vendor/couchbase-lite-core/Replicator/tests/ReplicatorAPITest.cc:402: FAILED:\r\n  CHECK( (doc->flags & kDocDeleted) == 0 )\r\nwith expansion:\r\n  1 == 0\r\n\r\n/Users/tleyden/Development/couchbase-lite-ios/vendor/couchbase-lite-core/Replicator/tests/ReplicatorAPITest.cc:404: FAILED:\r\n  CHECK( doc->selectedRev.revID == \"1-aaaa\"_sl )\r\nwith expansion:\r\n  slice[\"2-cccc\"] == {?}\r\n\r\n10:28:37.691708| ERROR: LiteCore throwing LiteCore error 4: bad revision ID\r\n\t 0  libLiteCore.dylib         c4rev_getGeneration + 1227909\r\n\t 1  libLiteCore.dylib         c4rev_getGeneration + 1227954\r\n\t 2  libLiteCore.dylib         c4rev_getGeneration + 4044\r\n\t 3  libLiteCore.dylib         c4doc_put + 746\r\n\t 4  C4Tests                   C4Test::createConflictingRev(c4Database*, FLSlice, FLSlice, FLSlice, FLSlice, unsigned char) + 191\r\n\t 5  C4Tests                   C4Test::createRev(c4Database*, FLSlice, FLSlice, FLSlice, unsigned char) + 331\r\n\t 6  C4Tests                   C4Test::createRev(FLSlice, FLSlice, FLSlice, unsigned char) + 33\r\n\t 7  C4Tests                   (anonymous namespace)::____C_A_T_C_H____T_E_S_T____384::test() + 2114\r\n\t 8  C4Tests                   Catch::MethodTestCase<(anonymous namespace)::____C_A_T_C_H____T_E_S_T____384>::invoke() const + 71\r\n\t 9  C4Tests                   Catch::RunContext::invokeActiveTestCase() + 126\r\n\t10  C4Tests                   Catch::RunContext::runCurrentTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 423\r\n\t11  C4Tests                   Catch::RunContext::runTest(Catch::TestCase const&) + 277\r\n\t12  C4Tests                   Catch::runTests(Catch::Ptr<Catch::Config> const&) + 1345\r\n\t13  C4Tests                   Catch::Session::run() + 160\r\n\t14  C4Tests                   main + 72\r\n\t15  libdyld.dylib             start + 1\r\n/Users/tleyden/Development/couchbase-lite-ios/vendor/couchbase-lite-core/C/tests/c4Test.cc:355: FAILED:\r\n  REQUIRE( doc != nullptr )\r\nwith expansion:\r\n  NULL != nullptr\r\nwith message:\r\n  Error: bad revision ID\r\n\r\n10:28:37.692707| [DB]: Closing DataFile\r\n10:28:37.694413| [DB]: Deleting database file /private/var/folders/l7/hr7n2gb52nz0vn9lq_x2prcr0000gn/T/Litecore_C_Tests/cbl_core_test.cblite2/db.sqlite3 (with -wal and -shm)\r\n*** LEAKED LITECORE OBJECTS:\r\n***\r\n/Users/tleyden/Development/couchbase-lite-ios/vendor/couchbase-lite-core/C/tests/c4Test.cc:262: FAILED:\r\n  CHECK( leaks == 0 )\r\nwith expansion:\r\n  3 == 0\r\n\r\n=======================================================================================================================\r\ntest cases:    15 |    14 passed | 1 failed\r\nassertions: 37939 | 37934 passed | 5 failed\r\n```\r\n\r\nFull logs:  https://gist.github.com/tleyden/ff63787da1cdd9ceb08cb29d686ea67a\r\n\r\n\r\nI will try to reproduce this with the latest internal builds rather than these fairly arbitrary commits that I happened to have locally."},"comment":{"url":"https://api.github.com/repos/couchbase/sync_gateway/issues/comments/375408221","html_url":"https://github.com/couchbase/sync_gateway/issues/3381#issuecomment-375408221","issue_url":"https://api.github.com/repos/couchbase/sync_gateway/issues/3381","id":375408221,"user":{"login":"tleyden","id":296876,"avatar_url":"https://avatars1.githubusercontent.com/u/296876?v=4","gravatar_id":"","url":"https://api.github.com/users/tleyden","html_url":"https://github.com/tleyden","followers_url":"https://api.github.com/users/tleyden/followers","following_url":"https://api.github.com/users/tleyden/following{/other_user}","gists_url":"https://api.github.com/users/tleyden/gists{/gist_id}","starred_url":"https://api.github.com/users/tleyden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tleyden/subscriptions","organizations_url":"https://api.github.com/users/tleyden/orgs","repos_url":"https://api.github.com/users/tleyden/repos","events_url":"https://api.github.com/users/tleyden/events{/privacy}","received_events_url":"https://api.github.com/users/tleyden/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T18:17:51Z","updated_at":"2018-03-22T18:17:51Z","author_association":"COLLABORATOR","body":"After switching to:\r\n\r\n- Sg commit 5b66afbb1599fbdd08ead42a553f08defc952b3b (master)\r\n- Couchbase-lite-ios commit 71d66ef8e38759d2b33bff23f0af1f1c0ac87263 (master)\r\n\r\nthe tests are now passing: \r\n\r\nhttps://gist.github.com/tleyden/b134ee3a93b74115bba3a153e22d437f"}}
{"actor":{"display_login":"tleyden"}}