OK, Assuming that you have moved to Sync Gateway 1.5 / Couchbase Server 5.0 (beta), a quick note that the sync metadata has been moved out of the _sync property in the document into Extended Attributes XATTRs.
That said, I take it that you do not see any documents with _sync
prefix in the bucket ? That would imply that the sync did not happen.
Couple of things to check -
- Can you confirm that your Sync Gateway import settings are configured correctly in the Sync Gateway config file as discussed here.
- If you haven’t done so already, can you enable [verbose logging] (https://developer.couchbase.com/documentation/mobile/1.4/guides/sync-gateway/config-properties/index.html#server) on the Sync Gateway and restart the Sync Gateway. We can tell from the Sync Gateway logs if it is importing the documents correctly or not. If it imports correctly, you should see logs in the similar to these -
2017-06-15T14:17:00.283-04:00 Import: Created new rev ID 9-36ac54ab1140e178a01899d1825df183 2017-06-15T14:17:00.283-04:00 CRUD+: Invoking sync on doc "user::demo" rev 9-36ac54ab1140e178a01899d1825df183 2017-06-15T14:17:00.336-04:00 CRUD+: Saving old revision "user::demo" / "8-2e00f4e0211d6905382e027a64cd54ca" (1015 bytes) 2017-06-15T14:17:00.336-04:00 CRUD+: Backed up obsolete rev "user::demo"/"8-2e00f4e0211d6905382e027a64cd54ca" 2017-06-15T14:17:00.338-04:00 CRUD+: SAVING #31603 2017-06-15T14:17:00.338-04:00 CRUD: Stored doc "user::demo" / "9-36ac54ab1140e178a01899d1825df183" 2017-06-15T14:17:00.338-04:00 Import+: Imported user::demo (delete=false) as rev 9-36ac54ab1140e178a01899d1825df183 2017-06-15T14:17:00.339-04:00 Cache: Received #31603 after 1ms ("user::demo" / "9-36ac54ab1140e178a01899d1825df183")
…