Hi Sascha, Andrei tried to reproduce this, and here was the result:
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 Regarding the "too large body" issue you are seeing, I think this error could happen if you added a map function directly to couchbase server which did not ignore _sync documents (I've done this accidentally before, see https://github.com/couchbase/sync_gateway/issues/374) If that's not the issue, please provide more guidance on how we can reproduce the problem. On Thu, Aug 7, 2014 at 2:45 AM, Sascha Lüdecke <[email protected]> wrote: > 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,[email protected]:<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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/mobile-couchbase/2351640.2Za7ljy6nD%40slux > <https://groups.google.com/d/msgid/mobile-couchbase/2351640.2Za7ljy6nD%40slux?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/CACSSHCHfGFJvpzia34VeWNJhPoX9cxC84y%3Dvmir5qoxvhEQKRQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
