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

SG doesn't have any docs in its cache after replication #957

Closed
hrajput89 opened this issue Feb 6, 2018 · 10 comments
Closed

SG doesn't have any docs in its cache after replication #957

hrajput89 opened this issue Feb 6, 2018 · 10 comments
Assignees
Milestone

Comments

@hrajput89
Copy link

I create 10 docs in CBL app for .net and then started replication to sync them to SG/CBS. I can see that docs are available in CBS, but there are no docs in SG. Hence the test failed as no. doesn't match from expected value of 10.

SG output
http://172.23.109.132:4984/db/_all_docs
{"rows":[
],
"total_rows":0,"update_seq":11}

CBS bucket
screenshot 2018-02-06 12 03 18

SG output
screenshot 2018-02-06 12 03 30

SG logs
sgcollect_info.zip

CBL logs:

Press any key to exit...
22:32:31.394884| [Couchbase]: (Startup) [3] 2018-02-05T22:32:31.3921778-08:00 CouchbaseLite/2.0.0 (.NET; Microsoft Windows 10.0.16299 ) Build/52 LiteCore/619 Commit/cc0ab52
22:32:36.814314| [BLIP]: {Connection#1}==> class litecore::blip::Connection ->ws:172.23.109.132:4984/db/_blipsync
22:32:36.816029| [BLIP]: {Connection#1} Opening connection...
22:32:36.817263| [Actor]: Starting Scheduler<0000022B4A168BB0> with 4 threads
22:32:36.930244| [BLIP]: {Connection#1} Connected!
22:32:37.064467| [BLIP]: {Connection#1} Close connection
22:32:37.117851| [BLIP]: {Connection#1} Closed with WebSocket status 1000:
22:32:37.119921| [BLIP]: {BLIPIO#2}==> class litecore::blip::BLIPIO 0000022B6483CBA8
22:32:37.121016| [BLIP]: {BLIPIO#2} ~BLIPIO: Sent 1071 bytes, rcvd 214. Max outbox depth was 1, avg 1.00

Cluster information:

SG -

  • Build - 2.0.0-773
  • OS - RHEL7

CBS -

  • Build - 5.0.0 -3519
  • OS - RHEL7

.net CBL

  • Build - 2.0.0-b0520
@hrajput89
Copy link
Author

I tried the same test case over the same cluster with android app. Test passed successfully and I can see the docs available on SG.

http://172.23.109.132:4984/db/_all_docs

{"rows":[
{"key":"cbl_0","id":"cbl_0","value":{"rev":"3-2775bc1db097fd0cc1f8593377ff0c86"}}
,{"key":"cbl_1","id":"cbl_1","value":{"rev":"3-0b204ecf0992e1e8106c2823d61ea130"}}
,{"key":"cbl_2","id":"cbl_2","value":{"rev":"3-1d4d6787c978f7e2c85afd549e3aecc4"}}
,{"key":"cbl_3","id":"cbl_3","value":{"rev":"3-b6f00307943515f832a5bd96b0299598"}}
,{"key":"cbl_4","id":"cbl_4","value":{"rev":"3-c4a2544c81e1e1209c6234d89f4e741d"}}
,{"key":"cbl_5","id":"cbl_5","value":{"rev":"3-cacabb8d99904b3591dd341a0c546cf2"}}
,{"key":"cbl_6","id":"cbl_6","value":{"rev":"3-b83c88f71feeaab8cb4775260e9c6f36"}}
,{"key":"cbl_7","id":"cbl_7","value":{"rev":"3-f5b9f5f2f3eef392987c90945bfddec2"}}
,{"key":"cbl_8","id":"cbl_8","value":{"rev":"3-fbba869f08e6adb2acc81e128ca0c34f"}}
,{"key":"cbl_9","id":"cbl_9","value":{"rev":"3-a1d9739030c7c93099bf6afbf191c3b6"}}
],
"total_rows":10,"update_seq":31}

@borrrden
Copy link
Member

borrrden commented Feb 6, 2018

I don't see any indication here that .NET is not doing what it is supposed to do....the SG logs indicate receiving all the revisions and they are present in Couchbase Server...

@borrrden
Copy link
Member

borrrden commented Feb 6, 2018

Oh I do notice one thing now, and that is that the update sequence for android is 31 while .NET is 11. Could that have something to do with it?

@borrrden
Copy link
Member

borrrden commented Feb 6, 2018

Also which test is this?

@hrajput89
Copy link
Author

@borrrden, we are trying this test - test_replication_configuration_valid_values

Here is the reference for the test - https://github.com/couchbaselabs/mobile-testkit/blob/feature/cbl20-ver1/testsuites/CBLTester/CBL_Functional_tests/test_replication.py#L48.

What is update sequence is it any package?

@borrrden
Copy link
Member

borrrden commented Feb 6, 2018

Update sequence is the final value in the all docs JSON responses above.

@borrrden
Copy link
Member

borrrden commented Feb 7, 2018

Where is the version of the CBL .NET server that you are using to test? The one on cbl2.0_dotnet does not compile and there is no version on cbl20-ver1. Without this I cannot see what is going on

@hrajput89
Copy link
Author

hrajput89 commented Feb 7, 2018

@borrrden, can you please try with cbl2.0_dotnet

@ritamcouchbase
Copy link

@borrrden and @hrajput89 - Removed the blocker tag from the defect for now, since it is a testware issue.

@djpongh
Copy link
Contributor

djpongh commented Feb 8, 2018

being a test issue, closing this. Once the test is fixed and re-run, if errors are found, they should be new tickets.

@djpongh djpongh closed this as completed Feb 8, 2018
@djpongh djpongh removed the backlog label Feb 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants