Hi all,
we are adding image attachments larger than 1MB to our documents using
UnsavedRevision newRev = doc.createRevision();
newRev.setAttachment(filename, mimeType, stream);
newRev.save();
When the sync_gateway (1.0.0-23; commit abbfd465) is started as a walrus database, everything is replicated nice and smothely. When the sync_gateway is connected to a couchbase server (2.2.0 community edition (build-837)), the couchbase server chokes on them with repeated messages in error and debug log:
[mapreduce_errors:error,2014-08-06T8:17:05.255,ns...@127.0.0.1:<0.16636.37>:couch_set_view_updater:load_doc:483]Bucket `usercontent_publicbeta`, main group `_design/sync_gateway`, skipping document with ID `_sync:att:sha1-+BNbV0BRAZNtU/IM8oqWUthvfYc=`: too large body (2832362 bytes)
As far as I have been able to read, the limit of documents in the server is 10 MB so those images should work fine.
Any ideas / pointers?
Best regards,
Sascha
--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/2351640.2Za7ljy6nD%40slux.
For more options, visit https://groups.google.com/d/optout.
--
I've added test for this case: attachments > 2M, replication lite1->SG->CB/walrus->SG->lite2
https://github.com/couchbaselabs/cblite-tests/blob/master/tests/cbl-replication-attachements.js
and don't see any issues. I also run this test against 2.2.0 and there is no problem
--