attachment sync failed from SyncGateway(1.1) to CBL(1.1) on Android(5.0.1) emulator

67 views
Skip to first unread message

atom992

unread,
Jul 6, 2015, 7:54:35 AM7/6/15
to mobile-c...@googlegroups.com
    I am testing attachment sync between SyncGateway(1.1) and CBL(1.1) on Android(5.0.1) emulator using REST API, I can sync attachment from CBL to SG, but when I try to sync attachment  from SyncGateway  to CBL, I found the completed_change_count of ActiveTasks really  add 1,but I can not find the attachment that should be sync to CBL.
    I found the following logs:

V/ChangeTracker(20024): com.couchbase.lite.replicator.ChangeTracker@19153841: /readValue.  fullBody: {results=[{seq=80, id=MSG:64598a8e-b613-4026-8b68-4471d65d0bcd, changes=[{rev=4-d1da30c8ac590e7875df9823475e3074}]}], last_seq=80}
D/ChangeTracker(20024): com.couchbase.lite.replicator.ChangeTracker@19153841: changeTrackerReceivedChange: {seq=80, id=MSG:64598a8e-b613-4026-8b68-4471d65d0bcd, changes=[{rev=4-d1da30c8ac590e7875df9823475e3074}]}
D/Sync    (20024): changeTrackerReceivedChange: {seq=80, id=MSG:64598a8e-b613-4026-8b68-4471d65d0bcd, changes=[{rev=4-d1da30c8ac590e7875df9823475e3074}]}
D/Sync    (20024): com.couchbase.lite.replicator.PullerInternal@39200f0e: adding rev to inbox {MSG:64598a8e-b613-4026-8b68-4471d65d0bcd #4-d1da30c8ac590e7875df9823475e3074}
V/Sync    (20024): com.couchbase.lite.replicator.PullerInternal@39200f0e: changeTrackerReceivedChange() incrementing changesCount by 1
V/Sync    (20024): com.couchbase.lite.replicator.PullerInternal@39200f0e: Incrementing changesCount count from 37 by adding 1 -> 38
V/Sync    (20024): com.couchbase.lite.replicator.PullerInternal@39200f0e: addToInbox() called, rev: {MSG:64598a8e-b613-4026-8b68-4471d65d0bcd #4-d1da30c8ac590e7875df9823475e3074}.  Thread: Thread[ChangeTracker-http://X.X.X.X/sgdb/,5,TJWS threads]
V/CBLite  (20024): setPaused: false
D/ChangeTracker(20024): com.couchbase.lite.replicator.ChangeTracker@19153841: /changeTrackerReceivedChange: {seq=80, id=MSG:64598a8e-b613-4026-8b68-4471d65d0bcd, changes=[{rev=4-d1da30c8ac590e7875df9823475e3074}]}
V/ChangeTracker(20024): com.couchbase.lite.replicator.ChangeTracker@19153841: responseOK: true
D/Sync    (20024): changeTrackerCaughtUp
V/ChangeTracker(20024): com.couchbase.lite.replicator.ChangeTracker@19153841: Starting new longpoll
V/ChangeTracker(20024): com.couchbase.lite.replicator.ChangeTracker@19153841: Making request to http://X.X.X.X/sgdb/_changes
V/Sync    (20024): *** com.couchbase.lite.replicator.ReplicationInternal$2@b649f0f: BEGIN processInbox (1 sequences)
D/Sync    (20024): processInbox called
V/Sync    (20024): com.couchbase.lite.replicator.PullerInternal@39200f0e: fetching 1 remote revisions...
D/Sync    (20024): com.couchbase.lite.replicator.PullerInternal@39200f0e: pullRemoteRevision with rev: {MSG:64598a8e-b613-4026-8b68-4471d65d0bcd #4-d1da30c8ac590e7875df9823475e3074}
V/Sync    (20024): com.couchbase.lite.support.RemoteRequestRetry@5885628: RemoteRequestRetry created, url: http://X.X.X.X/sgdb/MSG%3A64598a8e-b613-4026-8b68-4471d65d0bcd?rev=4-d1da30c8ac590e7875df9823475e3074&revs=true&attachments=true
V/Sync    (20024): com.couchbase.lite.support.RemoteMultipartDownloaderRequest@303d0f41: RemoteRequest created, url: http://X.X.X.X/sgdb/MSG%3A64598a8e-b613-4026-8b68-4471d65d0bcd?rev=4-d1da30c8ac590e7875df9823475e3074&revs=true&attachments=true
D/Sync    (20024): [fireTrigger()] => RESUME
V/CBLite  (20024): setPaused: false
V/Sync    (20024): *** com.couchbase.lite.replicator.ReplicationInternal$2@b649f0f: END processInbox (lastSequence=77)
D/Sync    (20024): firing trigger: RESUME
V/Sync    (20024): [onExit()] IDLE => RUNNING
D/Sync    (20024): State transition: IDLE -> RUNNING (via RESUME).  this: com.couchbase.lite.replicator.PullerInternal@39200f0e
D/Sync    (20024): [PullerInternal.waitForPendingFutures()] STARTED - thread id: 383
E/RemoteRequest(20024): com.couchbase.lite.support.RemoteMultipartDownloaderRequest@303d0f41: executeRequest() Exception:
E/RemoteRequest(20024): java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference
E/RemoteRequest(20024): at com.couchbase.lite.support.MultipartDocumentReader.setHeaders(MultipartDocumentReader.java:70)
E/RemoteRequest(20024): at com.couchbase.lite.support.RemoteMultipartDownloaderRequest.executeRequest(RemoteMultipartDownloaderRequest.java:95)
E/RemoteRequest(20024): at com.couchbase.lite.support.RemoteMultipartDownloaderRequest.run(RemoteMultipartDownloaderRequest.java:48)
E/RemoteRequest(20024): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
E/RemoteRequest(20024): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
E/RemoteRequest(20024): at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
E/RemoteRequest(20024): at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
E/RemoteRequest(20024): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
E/RemoteRequest(20024): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
E/RemoteRequest(20024): at java.lang.Thread.run(Thread.java:818)
D/Sync    (20024): com.couchbase.lite.support.RemoteRequestRetry$1@c20acd4: RemoteRequestRetry inner request finished, url: http://X.X.X.X/sgdb/MSG%3A64598a8e-b613-4026-8b68-4471d65d0bcd?rev=4-d1da30c8ac590e7875df9823475e3074&revs=true&attachments=true
D/Sync    (20024): com.couchbase.lite.support.RemoteRequestRetry@5885628: isTransientError called, httpResponse: org.apache.http.message.BasicHttpResponse@1e8a5e7d e: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference
D/Sync    (20024): %s: return false
D/Sync    (20024): com.couchbase.lite.support.RemoteRequestRetry$1@c20acd4: RemoteRequestRetry failed, non-transient error.  NOT retrying. url: http://X.X.X.X/sgdb/MSG%3A64598a8e-b613-4026-8b68-4471d65d0bcd?rev=4-d1da30c8ac590e7875df9823475e3074&revs=true&attachments=true
E/Sync    (20024): Error pulling remote revision
E/Sync    (20024): java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference
E/Sync    (20024): at com.couchbase.lite.support.MultipartDocumentReader.setHeaders(MultipartDocumentReader.java:70)
E/Sync    (20024): at com.couchbase.lite.support.RemoteMultipartDownloaderRequest.executeRequest(RemoteMultipartDownloaderRequest.java:95)
E/Sync    (20024): at com.couchbase.lite.support.RemoteMultipartDownloaderRequest.run(RemoteMultipartDownloaderRequest.java:48)
E/Sync    (20024): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
E/Sync    (20024): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
E/Sync    (20024): at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
E/Sync    (20024): at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
E/Sync    (20024): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
E/Sync    (20024): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
E/Sync    (20024): at java.lang.Thread.run(Thread.java:818)
V/Sync    (20024): com.couchbase.lite.replicator.PullerInternal@39200f0e: giving up on {MSG:64598a8e-b613-4026-8b68-4471d65d0bcd #4-d1da30c8ac590e7875df9823475e3074}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference
V/CBLite  (20024): setPaused: false
D/RemoteRequest(20024): com.couchbase.lite.support.RemoteMultipartDownloaderRequest@303d0f41: executeRequest() finally
V/ChangeTracker(20024): com.couchbase.lite.replicator.ChangeTracker@19153841: got response. status: HTTP/1.1 200 OK mode: LongPoll
V/ChangeTracker(20024): com.couchbase.lite.replicator.ChangeTracker@19153841: /entity.getContent().  mode: LongPoll
V/ChangeTracker(20024): com.couchbase.lite.replicator.ChangeTracker@19153841: readValue

Note: I have replace the address and bucket name of sync gateway.
id=MSG:64598a8e-b613-4026-8b68-4471d65d0bcd, changes=[{rev=4-d1da30c8ac590e7875df9823475e3074 this doc and rev is the attachment doc added from SG.

James Nocentini

unread,
Jul 6, 2015, 10:30:24 AM7/6/15
to mobile-c...@googlegroups.com
From the logs, I'm not sure what might be causing the issue.

What version of CBL Android are you using?
Can you post your code for getting the attachment from the CBL database?

Saving an attachment on a document creates a new revision. So CBL Android would be pulling the new revision and attachment. It's probably worth checking with a breakpoint that you're getting the latest revision from CBL as well.

James

atom992

unread,
Jul 6, 2015, 10:42:07 AM7/6/15
to mobile-c...@googlegroups.com


On Monday, July 6, 2015 at 10:30:24 PM UTC+8, James Nocentini wrote:
From the logs, I'm not sure what might be causing the issue.

What version of CBL Android are you using?

I am using Couchbase-Lite-PhoneGap-Plugin version 1.1.0 to build apps run on Android(5.0.1) emulator.  

Can you post your code for getting the attachment from the CBL database?

I am using REST API to get info of CBL,not JS code. I am just doing some test on sync docs and attachment.

James Nocentini

unread,
Jul 6, 2015, 11:10:42 AM7/6/15
to mobile-c...@googlegroups.com
Oops you did mention REST API in the first post :).
What's the response message/code when attempting to get the attachment with the REST API?

James

atom992

unread,
Jul 6, 2015, 12:04:13 PM7/6/15
to mobile-c...@googlegroups.com


On Monday, July 6, 2015 at 11:10:42 PM UTC+8, James Nocentini wrote:
Oops you did mention REST API in the first post :).
What's the response message/code when attempting to get the attachment with the REST API?

In CBL, I don't get the  attachment at all,and the doc's _conflicts is [].
and in the response of CBL _changes API, I found the last_seq havn't add(but when I created a doc, the last_seq added,CBL got the doc).

PRASANNA KUMAR

unread,
Jul 7, 2015, 8:59:37 AM7/7/15
to mobile-c...@googlegroups.com
Can you post your code for getting the attachment from the CBL database?

Attachment attachmentFirstImage = document.getCurrentRevision().getAttachment("abc.png");

If you want to show in imageview than convert the attachment to bitmap

atom992

unread,
Jul 7, 2015, 10:39:44 AM7/7/15
to mobile-c...@googlegroups.com
I am using REST API to query data. and when I query the doc which should be include  attachment, I found the rev of the doc in CBL is different than SyncGateway without conflict.

James Nocentini

unread,
Jul 7, 2015, 10:44:42 AM7/7/15
to mobile-c...@googlegroups.com
Ok thanks, can you post a sample project on github with the issue you are seeing?

James

atom992

unread,
Jul 7, 2015, 12:00:11 PM7/7/15
to mobile-c...@googlegroups.com


On Tuesday, July 7, 2015 at 10:44:42 PM UTC+8, James Nocentini wrote:
Ok thanks, can you post a sample project on github with the issue you are seeing?


It is base on ToDoLite demo with sync gateway 1.1 on my local env.

James Nocentini

unread,
Jul 8, 2015, 3:40:29 PM7/8/15
to mobile-c...@googlegroups.com
So the ToDoLite PhoneGap app isn't pulling attachments (photos in this case) correctly?

James

atom992

unread,
Jul 8, 2015, 9:55:48 PM7/8/15
to mobile-c...@googlegroups.com


On Thursday, July 9, 2015 at 3:40:29 AM UTC+8, James Nocentini wrote:
So the ToDoLite PhoneGap app isn't pulling attachments (photos in this case) correctly?


I tested again, ToDoLite PhoneGap app can pulling and pushing attachments if I using simple sync function such as:

function(doc) {channel(doc.channels);}

It works fine. but If I add more complicated sync function, the issue appeared.
I am not sure what cause the issue, complicated sync function,or complicated env(I add nodejs in front of sync gateway as proxy). I will do more test. Thank you.

atom992

unread,
Jul 9, 2015, 6:41:06 AM7/9/15
to mobile-c...@googlegroups.com
Hi I have just test my apps without NODEJS (NODEJS in front of sync gateway as proxy) ,and I can sync attachments now!
but I want to know why I added NODEJS as proxy cause this issue. My NODEJS is so simple as(deploy on the same machine with Sync Gateway):

var http = require('http'), httpProxy = require('http-proxy');

var proxy = httpProxy.createProxyServer({});



var server = require('http').createServer(function(req, res) {
   
var url = req.url;
   
var host = req.headers.host;
    proxy
.web(req, res, { target: 'http://localhost:4984' });
});
server
.listen(80);


I do need the NODEJS for some business logic control for web apps.

atom992

unread,
Jul 10, 2015, 12:03:14 PM7/10/15
to mobile-c...@googlegroups.com
I found the log on sync gateway says:

2015/07/10 23:49:51 http: panic serving 127.0.0.1:38937: runtime error: index out of range
goroutine 81 [running]:
net/http.func·011()
/usr/local/go/src/net/http/server.go:1130 +0xbb
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/revision.go:156 +0x212
github.com/couchbase/sync_gateway/db.func·019(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:481 +0x312
github.com/couchbase/sync_gateway/base.func·001(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4ecf70, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:77 +0x76
github.com/couchbase/go-couchbase.func·016(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:684 +0x8e
github.com/couchbase/go-couchbase.(*Bucket).update(0xc2081afba0, 0xc208275920, 0x28, 0x0, 0xc208309228, 0x5a175aed00000002, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:663 +0xd1
github.com/couchbase/go-couchbase.(*Bucket).WriteUpdate(0xc2081afba0, 0xc208275920, 0x28, 0x0, 0xc208309288, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:689 +0xd4
github.com/couchbase/sync_gateway/base.CouchbaseBucket.WriteUpdate(0xc2081afba0, 0xc20800b440, 0x1a, 0xaef6e0, 0x7, 0xc20802b700, 0x7, 0x0, 0x0, 0x0, ...)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:81 +0x9c
<autogenerated>:73 +0xfd
github.com/couchbase/sync_gateway/db.(*Database).updateDoc(0xc208156b80, 0xc208275920, 0x28, 0x0, 0xc2082eab40, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:650 +0x5b1
github.com/couchbase/sync_gateway/db.(*Database).PutExistingRev(0xc208156b80, 0xc208275920, 0x28, 0xc208275680, 0xc2082fab60, 0x7, 0x7, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:445 +0x447
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/bulk_api.go:397 +0xd45
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:159 +0x4b8
github.com/couchbase/sync_gateway/rest.func·015(0x7f7c74a0e4c8, 0xc2081f0140, 0xc208250ea0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:86 +0x7d
net/http.HandlerFunc.ServeHTTP(0xc2081b86a0, 0x7f7c74a0e4c8, 0xc2081f0140, 0xc208250ea0)
/usr/local/go/src/net/http/server.go:1265 +0x41
github.com/gorilla/mux.(*Router).ServeHTTP(0xc2082a4be0, 0x7f7c74a0e4c8, 0xc2081f0140, 0xc208250ea0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/gorilla/mux/mux.go:86 +0x29e
github.com/couchbase/sync_gateway/rest.func·017(0x7f7c74a0e4c8, 0xc2081f0140, 0xc208250ea0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/routing.go:236 +0x32f
net/http.HandlerFunc.ServeHTTP(0xc2082c6e60, 0x7f7c74a0e4c8, 0xc2081f0140, 0xc208250ea0)
/usr/local/go/src/net/http/server.go:1265 +0x41
net/http.serverHandler.ServeHTTP(0xc2082f94a0, 0x7f7c74a0e4c8, 0xc2081f0140, 0xc208250ea0)
/usr/local/go/src/net/http/server.go:1703 +0x19a
net/http.(*conn).serve(0xc2081f0000)
/usr/local/go/src/net/http/server.go:1204 +0xb57
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:1751 +0x35e
2015-07-10T23:49:55.448+08:00 HTTP:  #034: POST /sgdb/_bulk_docs  (as syncuser)
2015/07/10 23:49:55 http: panic serving 127.0.0.1:38938: runtime error: index out of range
goroutine 68 [running]:
net/http.func·011()
/usr/local/go/src/net/http/server.go:1130 +0xbb
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/revision.go:156 +0x212
github.com/couchbase/sync_gateway/db.func·019(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:481 +0x312
github.com/couchbase/sync_gateway/base.func·001(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4ecf70, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:77 +0x76
github.com/couchbase/go-couchbase.func·016(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:684 +0x8e
github.com/couchbase/go-couchbase.(*Bucket).update(0xc2081afba0, 0xc2083107e0, 0x28, 0x0, 0xc20834f228, 0x5a175aed00000002, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:663 +0xd1
github.com/couchbase/go-couchbase.(*Bucket).WriteUpdate(0xc2081afba0, 0xc2083107e0, 0x28, 0x0, 0xc20834f288, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:689 +0xd4
github.com/couchbase/sync_gateway/base.CouchbaseBucket.WriteUpdate(0xc2081afba0, 0xc20800b440, 0x1a, 0xaef6e0, 0x7, 0xc20802b700, 0x7, 0x0, 0x0, 0x0, ...)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:81 +0x9c
<autogenerated>:73 +0xfd
github.com/couchbase/sync_gateway/db.(*Database).updateDoc(0xc208221b80, 0xc2083107e0, 0x28, 0x0, 0xc208226480, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:650 +0x5b1
github.com/couchbase/sync_gateway/db.(*Database).PutExistingRev(0xc208221b80, 0xc2083107e0, 0x28, 0xc2083106c0, 0xc2082fa2a0, 0x7, 0x7, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:445 +0x447
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/bulk_api.go:397 +0xd45
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:159 +0x4b8
github.com/couchbase/sync_gateway/rest.func·015(0x7f7c74a0e4c8, 0xc2082d61e0, 0xc208168000)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:86 +0x7d
net/http.HandlerFunc.ServeHTTP(0xc2081b86a0, 0x7f7c74a0e4c8, 0xc2082d61e0, 0xc208168000)
/usr/local/go/src/net/http/server.go:1265 +0x41
github.com/gorilla/mux.(*Router).ServeHTTP(0xc2082a4be0, 0x7f7c74a0e4c8, 0xc2082d61e0, 0xc208168000)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/gorilla/mux/mux.go:86 +0x29e
github.com/couchbase/sync_gateway/rest.func·017(0x7f7c74a0e4c8, 0xc2082d61e0, 0xc208168000)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/routing.go:236 +0x32f
net/http.HandlerFunc.ServeHTTP(0xc2082c6e60, 0x7f7c74a0e4c8, 0xc2082d61e0, 0xc208168000)
/usr/local/go/src/net/http/server.go:1265 +0x41
net/http.serverHandler.ServeHTTP(0xc2082f94a0, 0x7f7c74a0e4c8, 0xc2082d61e0, 0xc208168000)
/usr/local/go/src/net/http/server.go:1703 +0x19a
net/http.(*conn).serve(0xc2082d60a0)
/usr/local/go/src/net/http/server.go:1204 +0xb57
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:1751 +0x35e
2015-07-10T23:50:03.482+08:00 HTTP:  #035: POST /sgdb/_bulk_docs  (as syncuser)
2015/07/10 23:50:03 http: panic serving 127.0.0.1:38939: runtime error: index out of range
goroutine 69 [running]:
net/http.func·011()
/usr/local/go/src/net/http/server.go:1130 +0xbb
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/revision.go:156 +0x212
github.com/couchbase/sync_gateway/db.func·019(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:481 +0x312
github.com/couchbase/sync_gateway/base.func·001(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4ecf70, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:77 +0x76
github.com/couchbase/go-couchbase.func·016(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:684 +0x8e
github.com/couchbase/go-couchbase.(*Bucket).update(0xc2081afba0, 0xc2083115f0, 0x28, 0x0, 0xc20834f228, 0x5a175aed00000002, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:663 +0xd1
github.com/couchbase/go-couchbase.(*Bucket).WriteUpdate(0xc2081afba0, 0xc2083115f0, 0x28, 0x0, 0xc20834f288, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:689 +0xd4
github.com/couchbase/sync_gateway/base.CouchbaseBucket.WriteUpdate(0xc2081afba0, 0xc20800b440, 0x1a, 0xaef6e0, 0x7, 0xc20802b700, 0x7, 0x0, 0x0, 0x0, ...)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:81 +0x9c
<autogenerated>:73 +0xfd
github.com/couchbase/sync_gateway/db.(*Database).updateDoc(0xc20824dce0, 0xc2083115f0, 0x28, 0x0, 0xc2082267c0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:650 +0x5b1
github.com/couchbase/sync_gateway/db.(*Database).PutExistingRev(0xc20824dce0, 0xc2083115f0, 0x28, 0xc2083114d0, 0xc2082fa3f0, 0x7, 0x7, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:445 +0x447
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/bulk_api.go:397 +0xd45
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:159 +0x4b8
github.com/couchbase/sync_gateway/rest.func·015(0x7f7c74a0e4c8, 0xc2082d66e0, 0xc2081685b0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:86 +0x7d
net/http.HandlerFunc.ServeHTTP(0xc2081b86a0, 0x7f7c74a0e4c8, 0xc2082d66e0, 0xc2081685b0)
/usr/local/go/src/net/http/server.go:1265 +0x41
github.com/gorilla/mux.(*Router).ServeHTTP(0xc2082a4be0, 0x7f7c74a0e4c8, 0xc2082d66e0, 0xc2081685b0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/gorilla/mux/mux.go:86 +0x29e
github.com/couchbase/sync_gateway/rest.func·017(0x7f7c74a0e4c8, 0xc2082d66e0, 0xc2081685b0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/routing.go:236 +0x32f
net/http.HandlerFunc.ServeHTTP(0xc2082c6e60, 0x7f7c74a0e4c8, 0xc2082d66e0, 0xc2081685b0)
/usr/local/go/src/net/http/server.go:1265 +0x41
net/http.serverHandler.ServeHTTP(0xc2082f94a0, 0x7f7c74a0e4c8, 0xc2082d66e0, 0xc2081685b0)
/usr/local/go/src/net/http/server.go:1703 +0x19a
net/http.(*conn).serve(0xc2082d65a0)
/usr/local/go/src/net/http/server.go:1204 +0xb57
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:1751 +0x35e
2015-07-10T23:50:19.651+08:00 HTTP:  #036: POST /sgdb/_bulk_docs  (as syncuser)
2015/07/10 23:50:19 http: panic serving 127.0.0.1:38940: runtime error: index out of range
goroutine 70 [running]:
net/http.func·011()
/usr/local/go/src/net/http/server.go:1130 +0xbb
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/revision.go:156 +0x212
github.com/couchbase/sync_gateway/db.func·019(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:481 +0x312
github.com/couchbase/sync_gateway/base.func·001(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4ecf70, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:77 +0x76
github.com/couchbase/go-couchbase.func·016(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:684 +0x8e
github.com/couchbase/go-couchbase.(*Bucket).update(0xc2081afba0, 0xc20820e450, 0x28, 0x0, 0xc20834f228, 0x5a175aed00000002, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:663 +0xd1
github.com/couchbase/go-couchbase.(*Bucket).WriteUpdate(0xc2081afba0, 0xc20820e450, 0x28, 0x0, 0xc20834f288, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:689 +0xd4
github.com/couchbase/sync_gateway/base.CouchbaseBucket.WriteUpdate(0xc2081afba0, 0xc20800b440, 0x1a, 0xaef6e0, 0x7, 0xc20802b700, 0x7, 0x0, 0x0, 0x0, ...)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:81 +0x9c
<autogenerated>:73 +0xfd
github.com/couchbase/sync_gateway/db.(*Database).updateDoc(0xc2082487c0, 0xc20820e450, 0x28, 0x0, 0xc208226b40, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:650 +0x5b1
github.com/couchbase/sync_gateway/db.(*Database).PutExistingRev(0xc2082487c0, 0xc20820e450, 0x28, 0xc208311f80, 0xc2082fa540, 0x7, 0x7, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:445 +0x447
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/bulk_api.go:397 +0xd45
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:159 +0x4b8
github.com/couchbase/sync_gateway/rest.func·015(0x7f7c74a0e4c8, 0xc2082d7220, 0xc2081688f0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:86 +0x7d
net/http.HandlerFunc.ServeHTTP(0xc2081b86a0, 0x7f7c74a0e4c8, 0xc2082d7220, 0xc2081688f0)
/usr/local/go/src/net/http/server.go:1265 +0x41
github.com/gorilla/mux.(*Router).ServeHTTP(0xc2082a4be0, 0x7f7c74a0e4c8, 0xc2082d7220, 0xc2081688f0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/gorilla/mux/mux.go:86 +0x29e
github.com/couchbase/sync_gateway/rest.func·017(0x7f7c74a0e4c8, 0xc2082d7220, 0xc2081688f0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/routing.go:236 +0x32f
net/http.HandlerFunc.ServeHTTP(0xc2082c6e60, 0x7f7c74a0e4c8, 0xc2082d7220, 0xc2081688f0)
/usr/local/go/src/net/http/server.go:1265 +0x41
net/http.serverHandler.ServeHTTP(0xc2082f94a0, 0x7f7c74a0e4c8, 0xc2082d7220, 0xc2081688f0)
/usr/local/go/src/net/http/server.go:1703 +0x19a
net/http.(*conn).serve(0xc2082d70e0)
/usr/local/go/src/net/http/server.go:1204 +0xb57
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:1751 +0x35e
2015-07-10T23:51:19.720+08:00 HTTP:  #037: GET /sgdb/_local/99e6904878e2c723cd01afcc6ad36d3e62db8a6b  (as syncuser)
2015-07-10T23:51:19.720+08:00 HTTP+: #037:     --> 200   (0.8 ms)
2015-07-10T23:51:19.738+08:00 HTTP:  #038: POST /sgdb/_revs_diff  (as syncuser)
2015-07-10T23:51:19.740+08:00 HTTP+: #038:     --> 200   (1.6 ms)
2015-07-10T23:51:19.770+08:00 HTTP:  #039: POST /sgdb/_bulk_docs  (as syncuser)
2015/07/10 23:51:19 http: panic serving 127.0.0.1:38943: runtime error: index out of range
goroutine 83 [running]:
net/http.func·011()
/usr/local/go/src/net/http/server.go:1130 +0xbb
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/revision.go:156 +0x212
github.com/couchbase/sync_gateway/db.func·019(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:481 +0x312
github.com/couchbase/sync_gateway/base.func·001(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4ecf70, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:77 +0x76
github.com/couchbase/go-couchbase.func·016(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:684 +0x8e
github.com/couchbase/go-couchbase.(*Bucket).update(0xc2081afba0, 0xc208322780, 0x28, 0x0, 0xc208201228, 0x5a175aed00000002, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:663 +0xd1
github.com/couchbase/go-couchbase.(*Bucket).WriteUpdate(0xc2081afba0, 0xc208322780, 0x28, 0x0, 0xc208201288, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:689 +0xd4
github.com/couchbase/sync_gateway/base.CouchbaseBucket.WriteUpdate(0xc2081afba0, 0xc20800b440, 0x1a, 0xaef6e0, 0x7, 0xc20802b700, 0x7, 0x0, 0x0, 0x0, ...)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:81 +0x9c
<autogenerated>:73 +0xfd
github.com/couchbase/sync_gateway/db.(*Database).updateDoc(0xc2082c7a40, 0xc208322780, 0x28, 0x0, 0xc208350480, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:650 +0x5b1
github.com/couchbase/sync_gateway/db.(*Database).PutExistingRev(0xc2082c7a40, 0xc208322780, 0x28, 0xc208322660, 0xc2082f4070, 0x7, 0x7, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:445 +0x447
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/bulk_api.go:397 +0xd45
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:159 +0x4b8
github.com/couchbase/sync_gateway/rest.func·015(0x7f7c74a0e4c8, 0xc2082fd040, 0xc208250f70)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:86 +0x7d
net/http.HandlerFunc.ServeHTTP(0xc2081b86a0, 0x7f7c74a0e4c8, 0xc2082fd040, 0xc208250f70)
/usr/local/go/src/net/http/server.go:1265 +0x41
github.com/gorilla/mux.(*Router).ServeHTTP(0xc2082a4be0, 0x7f7c74a0e4c8, 0xc2082fd040, 0xc208250f70)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/gorilla/mux/mux.go:86 +0x29e
github.com/couchbase/sync_gateway/rest.func·017(0x7f7c74a0e4c8, 0xc2082fd040, 0xc208250f70)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/routing.go:236 +0x32f
net/http.HandlerFunc.ServeHTTP(0xc2082c6e60, 0x7f7c74a0e4c8, 0xc2082fd040, 0xc208250f70)
/usr/local/go/src/net/http/server.go:1265 +0x41
net/http.serverHandler.ServeHTTP(0xc2082f94a0, 0x7f7c74a0e4c8, 0xc2082fd040, 0xc208250f70)
/usr/local/go/src/net/http/server.go:1703 +0x19a
net/http.(*conn).serve(0xc2082fcc80)
/usr/local/go/src/net/http/server.go:1204 +0xb57
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:1751 +0x35e
2015-07-10T23:51:23.810+08:00 HTTP:  #040: POST /sgdb/_bulk_docs  (as syncuser)
2015/07/10 23:51:23 http: panic serving 127.0.0.1:38944: runtime error: index out of range
goroutine 84 [running]:
net/http.func·011()
/usr/local/go/src/net/http/server.go:1130 +0xbb
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/revision.go:156 +0x212
github.com/couchbase/sync_gateway/db.func·019(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:481 +0x312
github.com/couchbase/sync_gateway/base.func·001(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4ecf70, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:77 +0x76
github.com/couchbase/go-couchbase.func·016(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:684 +0x8e
github.com/couchbase/go-couchbase.(*Bucket).update(0xc2081afba0, 0xc208310750, 0x28, 0x0, 0xc208321228, 0x5a175aed00000002, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:663 +0xd1
github.com/couchbase/go-couchbase.(*Bucket).WriteUpdate(0xc2081afba0, 0xc208310750, 0x28, 0x0, 0xc208321288, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:689 +0xd4
github.com/couchbase/sync_gateway/base.CouchbaseBucket.WriteUpdate(0xc2081afba0, 0xc20800b440, 0x1a, 0xaef6e0, 0x7, 0xc20802b700, 0x7, 0x0, 0x0, 0x0, ...)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:81 +0x9c
<autogenerated>:73 +0xfd
github.com/couchbase/sync_gateway/db.(*Database).updateDoc(0xc20824d4e0, 0xc208310750, 0x28, 0x0, 0xc208226480, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:650 +0x5b1
github.com/couchbase/sync_gateway/db.(*Database).PutExistingRev(0xc20824d4e0, 0xc208310750, 0x28, 0xc208310630, 0xc2082fa2a0, 0x7, 0x7, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:445 +0x447
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/bulk_api.go:397 +0xd45
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:159 +0x4b8
github.com/couchbase/sync_gateway/rest.func·015(0x7f7c74a0e4c8, 0xc2082d61e0, 0xc20801fee0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:86 +0x7d
net/http.HandlerFunc.ServeHTTP(0xc2081b86a0, 0x7f7c74a0e4c8, 0xc2082d61e0, 0xc20801fee0)
/usr/local/go/src/net/http/server.go:1265 +0x41
github.com/gorilla/mux.(*Router).ServeHTTP(0xc2082a4be0, 0x7f7c74a0e4c8, 0xc2082d61e0, 0xc20801fee0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/gorilla/mux/mux.go:86 +0x29e
github.com/couchbase/sync_gateway/rest.func·017(0x7f7c74a0e4c8, 0xc2082d61e0, 0xc20801fee0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/routing.go:236 +0x32f
net/http.HandlerFunc.ServeHTTP(0xc2082c6e60, 0x7f7c74a0e4c8, 0xc2082d61e0, 0xc20801fee0)
/usr/local/go/src/net/http/server.go:1265 +0x41
net/http.serverHandler.ServeHTTP(0xc2082f94a0, 0x7f7c74a0e4c8, 0xc2082d61e0, 0xc20801fee0)
/usr/local/go/src/net/http/server.go:1703 +0x19a
net/http.(*conn).serve(0xc2082d60a0)
/usr/local/go/src/net/http/server.go:1204 +0xb57
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:1751 +0x35e
2015-07-10T23:51:31.868+08:00 HTTP:  #041: POST /sgdb/_bulk_docs  (as syncuser)
2015/07/10 23:51:31 http: panic serving 127.0.0.1:38945: runtime error: index out of range
goroutine 72 [running]:
net/http.func·011()
/usr/local/go/src/net/http/server.go:1130 +0xbb
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/revision.go:156 +0x212
github.com/couchbase/sync_gateway/db.func·019(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:481 +0x312
github.com/couchbase/sync_gateway/base.func·001(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4ecf70, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:77 +0x76
github.com/couchbase/go-couchbase.func·016(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:684 +0x8e
github.com/couchbase/go-couchbase.(*Bucket).update(0xc2081afba0, 0xc208311410, 0x28, 0x0, 0xc208321228, 0x5a175aed00000002, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:663 +0xd1
github.com/couchbase/go-couchbase.(*Bucket).WriteUpdate(0xc2081afba0, 0xc208311410, 0x28, 0x0, 0xc208321288, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:689 +0xd4
github.com/couchbase/sync_gateway/base.CouchbaseBucket.WriteUpdate(0xc2081afba0, 0xc20800b440, 0x1a, 0xaef6e0, 0x7, 0xc20802b700, 0x7, 0x0, 0x0, 0x0, ...)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:81 +0x9c
<autogenerated>:73 +0xfd
github.com/couchbase/sync_gateway/db.(*Database).updateDoc(0xc208248000, 0xc208311410, 0x28, 0x0, 0xc208226a00, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:650 +0x5b1
github.com/couchbase/sync_gateway/db.(*Database).PutExistingRev(0xc208248000, 0xc208311410, 0x28, 0xc2083112c0, 0xc2082fa4d0, 0x7, 0x7, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:445 +0x447
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/bulk_api.go:397 +0xd45
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:159 +0x4b8
github.com/couchbase/sync_gateway/rest.func·015(0x7f7c74a0e4c8, 0xc2082fc140, 0xc208168680)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:86 +0x7d
net/http.HandlerFunc.ServeHTTP(0xc2081b86a0, 0x7f7c74a0e4c8, 0xc2082fc140, 0xc208168680)
/usr/local/go/src/net/http/server.go:1265 +0x41
github.com/gorilla/mux.(*Router).ServeHTTP(0xc2082a4be0, 0x7f7c74a0e4c8, 0xc2082fc140, 0xc208168680)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/gorilla/mux/mux.go:86 +0x29e
github.com/couchbase/sync_gateway/rest.func·017(0x7f7c74a0e4c8, 0xc2082fc140, 0xc208168680)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/routing.go:236 +0x32f
net/http.HandlerFunc.ServeHTTP(0xc2082c6e60, 0x7f7c74a0e4c8, 0xc2082fc140, 0xc208168680)
/usr/local/go/src/net/http/server.go:1265 +0x41
net/http.serverHandler.ServeHTTP(0xc2082f94a0, 0x7f7c74a0e4c8, 0xc2082fc140, 0xc208168680)
/usr/local/go/src/net/http/server.go:1703 +0x19a
net/http.(*conn).serve(0xc2082fc000)
/usr/local/go/src/net/http/server.go:1204 +0xb57
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:1751 +0x35e
2015-07-10T23:51:47.903+08:00 HTTP:  #042: POST /sgdb/_bulk_docs  (as syncuser)
2015/07/10 23:51:47 http: panic serving 127.0.0.1:38946: runtime error: index out of range
goroutine 73 [running]:
net/http.func·011()
/usr/local/go/src/net/http/server.go:1130 +0xbb
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/revision.go:156 +0x212
github.com/couchbase/sync_gateway/db.func·019(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:481 +0x312
github.com/couchbase/sync_gateway/base.func·001(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4ecf70, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:77 +0x76
github.com/couchbase/go-couchbase.func·016(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:684 +0x8e
github.com/couchbase/go-couchbase.(*Bucket).update(0xc2081afba0, 0xc2083238f0, 0x28, 0x0, 0xc208321228, 0x5a175aed00000002, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:663 +0xd1
github.com/couchbase/go-couchbase.(*Bucket).WriteUpdate(0xc2081afba0, 0xc2083238f0, 0x28, 0x0, 0xc208321288, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:689 +0xd4
github.com/couchbase/sync_gateway/base.CouchbaseBucket.WriteUpdate(0xc2081afba0, 0xc20800b440, 0x1a, 0xaef6e0, 0x7, 0xc20802b700, 0x7, 0x0, 0x0, 0x0, ...)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:81 +0x9c
<autogenerated>:73 +0xfd
github.com/couchbase/sync_gateway/db.(*Database).updateDoc(0xc208236320, 0xc2083238f0, 0x28, 0x0, 0xc208350b00, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:650 +0x5b1
github.com/couchbase/sync_gateway/db.(*Database).PutExistingRev(0xc208236320, 0xc2083238f0, 0x28, 0xc2083237d0, 0xc2082f4380, 0x7, 0x7, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:445 +0x447
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/bulk_api.go:397 +0xd45
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:159 +0x4b8
github.com/couchbase/sync_gateway/rest.func·015(0x7f7c74a0e4c8, 0xc2082fc640, 0xc208168a90)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:86 +0x7d
net/http.HandlerFunc.ServeHTTP(0xc2081b86a0, 0x7f7c74a0e4c8, 0xc2082fc640, 0xc208168a90)
/usr/local/go/src/net/http/server.go:1265 +0x41
github.com/gorilla/mux.(*Router).ServeHTTP(0xc2082a4be0, 0x7f7c74a0e4c8, 0xc2082fc640, 0xc208168a90)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/gorilla/mux/mux.go:86 +0x29e
github.com/couchbase/sync_gateway/rest.func·017(0x7f7c74a0e4c8, 0xc2082fc640, 0xc208168a90)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/routing.go:236 +0x32f
net/http.HandlerFunc.ServeHTTP(0xc2082c6e60, 0x7f7c74a0e4c8, 0xc2082fc640, 0xc208168a90)
/usr/local/go/src/net/http/server.go:1265 +0x41
net/http.serverHandler.ServeHTTP(0xc2082f94a0, 0x7f7c74a0e4c8, 0xc2082fc640, 0xc208168a90)
/usr/local/go/src/net/http/server.go:1703 +0x19a
net/http.(*conn).serve(0xc2082fc500)
/usr/local/go/src/net/http/server.go:1204 +0xb57
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:1751 +0x35e
2015-07-10T23:51:48.561+08:00 HTTP:  #043: GET /
2015-07-10T23:51:48.561+08:00 HTTP+: #043:     --> 200   (0.2 ms)
2015-07-10T23:53:47.937+08:00 HTTP:  #044: GET /sgdb/_local/99e6904878e2c723cd01afcc6ad36d3e62db8a6b  (as syncuser)
2015-07-10T23:53:47.938+08:00 HTTP+: #044:     --> 200   (0.9 ms)
2015-07-10T23:53:47.958+08:00 HTTP:  #045: POST /sgdb/_revs_diff  (as syncuser)
2015-07-10T23:53:47.960+08:00 HTTP+: #045:     --> 200   (1.8 ms)
2015-07-10T23:53:48.011+08:00 HTTP:  #046: POST /sgdb/_bulk_docs  (as syncuser)
2015/07/10 23:53:48 http: panic serving 127.0.0.1:38950: runtime error: index out of range
goroutine 75 [running]:
net/http.func·011()
/usr/local/go/src/net/http/server.go:1130 +0xbb
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/revision.go:156 +0x212
github.com/couchbase/sync_gateway/db.func·019(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:481 +0x312
github.com/couchbase/sync_gateway/base.func·001(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4ecf70, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:77 +0x76
github.com/couchbase/go-couchbase.func·016(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:684 +0x8e
github.com/couchbase/go-couchbase.(*Bucket).update(0xc2081afba0, 0xc20820e000, 0x28, 0x0, 0xc20834f228, 0x5a175aed00000002, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:663 +0xd1
github.com/couchbase/go-couchbase.(*Bucket).WriteUpdate(0xc2081afba0, 0xc20820e000, 0x28, 0x0, 0xc20834f288, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:689 +0xd4
github.com/couchbase/sync_gateway/base.CouchbaseBucket.WriteUpdate(0xc2081afba0, 0xc20800b440, 0x1a, 0xaef6e0, 0x7, 0xc20802b700, 0x7, 0x0, 0x0, 0x0, ...)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:81 +0x9c
<autogenerated>:73 +0xfd
github.com/couchbase/sync_gateway/db.(*Database).updateDoc(0xc208237f20, 0xc20820e000, 0x28, 0x0, 0xc208350ec0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:650 +0x5b1
github.com/couchbase/sync_gateway/db.(*Database).PutExistingRev(0xc208237f20, 0xc20820e000, 0x28, 0xc208323ec0, 0xc2082f4380, 0x7, 0x7, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:445 +0x447
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/bulk_api.go:397 +0xd45
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:159 +0x4b8
github.com/couchbase/sync_gateway/rest.func·015(0x7f7c74a0e4c8, 0xc2082d70e0, 0xc2081688f0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:86 +0x7d
net/http.HandlerFunc.ServeHTTP(0xc2081b86a0, 0x7f7c74a0e4c8, 0xc2082d70e0, 0xc2081688f0)
/usr/local/go/src/net/http/server.go:1265 +0x41
github.com/gorilla/mux.(*Router).ServeHTTP(0xc2082a4be0, 0x7f7c74a0e4c8, 0xc2082d70e0, 0xc2081688f0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/gorilla/mux/mux.go:86 +0x29e
github.com/couchbase/sync_gateway/rest.func·017(0x7f7c74a0e4c8, 0xc2082d70e0, 0xc2081688f0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/routing.go:236 +0x32f
net/http.HandlerFunc.ServeHTTP(0xc2082c6e60, 0x7f7c74a0e4c8, 0xc2082d70e0, 0xc2081688f0)
/usr/local/go/src/net/http/server.go:1265 +0x41
net/http.serverHandler.ServeHTTP(0xc2082f94a0, 0x7f7c74a0e4c8, 0xc2082d70e0, 0xc2081688f0)
/usr/local/go/src/net/http/server.go:1703 +0x19a
net/http.(*conn).serve(0xc2082fc780)
/usr/local/go/src/net/http/server.go:1204 +0xb57
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:1751 +0x35e
2015-07-10T23:53:52.041+08:00 HTTP:  #047: POST /sgdb/_bulk_docs  (as syncuser)
2015/07/10 23:53:52 http: panic serving 127.0.0.1:38951: runtime error: index out of range
goroutine 76 [running]:
net/http.func·011()
/usr/local/go/src/net/http/server.go:1130 +0xbb
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/revision.go:156 +0x212
github.com/couchbase/sync_gateway/db.func·019(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:481 +0x312
github.com/couchbase/sync_gateway/base.func·001(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4ecf70, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:77 +0x76
github.com/couchbase/go-couchbase.func·016(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:684 +0x8e
github.com/couchbase/go-couchbase.(*Bucket).update(0xc2081afba0, 0xc208311e30, 0x28, 0x0, 0xc20834f228, 0x5a175aed00000002, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:663 +0xd1
github.com/couchbase/go-couchbase.(*Bucket).WriteUpdate(0xc2081afba0, 0xc208311e30, 0x28, 0x0, 0xc20834f288, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:689 +0xd4
github.com/couchbase/sync_gateway/base.CouchbaseBucket.WriteUpdate(0xc2081afba0, 0xc20800b440, 0x1a, 0xaef6e0, 0x7, 0xc20802b700, 0x7, 0x0, 0x0, 0x0, ...)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:81 +0x9c
<autogenerated>:73 +0xfd
github.com/couchbase/sync_gateway/db.(*Database).updateDoc(0xc20821f920, 0xc208311e30, 0x28, 0x0, 0xc208227140, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:650 +0x5b1
github.com/couchbase/sync_gateway/db.(*Database).PutExistingRev(0xc20821f920, 0xc208311e30, 0x28, 0xc208311ce0, 0xc2082fa700, 0x7, 0x7, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:445 +0x447
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/bulk_api.go:397 +0xd45
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:159 +0x4b8
github.com/couchbase/sync_gateway/rest.func·015(0x7f7c74a0e4c8, 0xc2082fd040, 0xc208250410)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:86 +0x7d
net/http.HandlerFunc.ServeHTTP(0xc2081b86a0, 0x7f7c74a0e4c8, 0xc2082fd040, 0xc208250410)
/usr/local/go/src/net/http/server.go:1265 +0x41
github.com/gorilla/mux.(*Router).ServeHTTP(0xc2082a4be0, 0x7f7c74a0e4c8, 0xc2082fd040, 0xc208250410)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/gorilla/mux/mux.go:86 +0x29e
github.com/couchbase/sync_gateway/rest.func·017(0x7f7c74a0e4c8, 0xc2082fd040, 0xc208250410)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/routing.go:236 +0x32f
net/http.HandlerFunc.ServeHTTP(0xc2082c6e60, 0x7f7c74a0e4c8, 0xc2082fd040, 0xc208250410)
/usr/local/go/src/net/http/server.go:1265 +0x41
net/http.serverHandler.ServeHTTP(0xc2082f94a0, 0x7f7c74a0e4c8, 0xc2082fd040, 0xc208250410)
/usr/local/go/src/net/http/server.go:1703 +0x19a
net/http.(*conn).serve(0xc2082fcc80)
/usr/local/go/src/net/http/server.go:1204 +0xb57
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:1751 +0x35e
2015-07-10T23:54:00.072+08:00 HTTP:  #048: POST /sgdb/_bulk_docs  (as syncuser)
2015/07/10 23:54:00 http: panic serving 127.0.0.1:38952: runtime error: index out of range
goroutine 87 [running]:
net/http.func·011()
/usr/local/go/src/net/http/server.go:1130 +0xbb
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/revision.go:156 +0x212
github.com/couchbase/sync_gateway/db.func·019(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:481 +0x312
github.com/couchbase/sync_gateway/base.func·001(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4ecf70, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:77 +0x76
github.com/couchbase/go-couchbase.func·016(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:684 +0x8e
github.com/couchbase/go-couchbase.(*Bucket).update(0xc2081afba0, 0xc208310090, 0x28, 0x0, 0xc20834f228, 0x5a175aed00000002, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:663 +0xd1
github.com/couchbase/go-couchbase.(*Bucket).WriteUpdate(0xc2081afba0, 0xc208310090, 0x28, 0x0, 0xc20834f288, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:689 +0xd4
github.com/couchbase/sync_gateway/base.CouchbaseBucket.WriteUpdate(0xc2081afba0, 0xc20800b440, 0x1a, 0xaef6e0, 0x7, 0xc20802b700, 0x7, 0x0, 0x0, 0x0, ...)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:81 +0x9c
<autogenerated>:73 +0xfd
github.com/couchbase/sync_gateway/db.(*Database).updateDoc(0xc20824cbc0, 0xc208310090, 0x28, 0x0, 0xc208226880, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:650 +0x5b1
github.com/couchbase/sync_gateway/db.(*Database).PutExistingRev(0xc20824cbc0, 0xc208310090, 0x28, 0xc208297e30, 0xc2082fa3f0, 0x7, 0x7, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:445 +0x447
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/bulk_api.go:397 +0xd45
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:159 +0x4b8
github.com/couchbase/sync_gateway/rest.func·015(0x7f7c74a0e4c8, 0xc2082fc140, 0xc20801f2b0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:86 +0x7d
net/http.HandlerFunc.ServeHTTP(0xc2081b86a0, 0x7f7c74a0e4c8, 0xc2082fc140, 0xc20801f2b0)
/usr/local/go/src/net/http/server.go:1265 +0x41
github.com/gorilla/mux.(*Router).ServeHTTP(0xc2082a4be0, 0x7f7c74a0e4c8, 0xc2082fc140, 0xc20801f2b0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/gorilla/mux/mux.go:86 +0x29e
github.com/couchbase/sync_gateway/rest.func·017(0x7f7c74a0e4c8, 0xc2082fc140, 0xc20801f2b0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/routing.go:236 +0x32f
net/http.HandlerFunc.ServeHTTP(0xc2082c6e60, 0x7f7c74a0e4c8, 0xc2082fc140, 0xc20801f2b0)
/usr/local/go/src/net/http/server.go:1265 +0x41
net/http.serverHandler.ServeHTTP(0xc2082f94a0, 0x7f7c74a0e4c8, 0xc2082fc140, 0xc20801f2b0)
/usr/local/go/src/net/http/server.go:1703 +0x19a
net/http.(*conn).serve(0xc2082fc000)
/usr/local/go/src/net/http/server.go:1204 +0xb57
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:1751 +0x35e
2015-07-10T23:54:16.099+08:00 HTTP:  #049: POST /sgdb/_bulk_docs  (as syncuser)
2015/07/10 23:54:16 http: panic serving 127.0.0.1:38953: runtime error: index out of range
goroutine 88 [running]:
net/http.func·011()
/usr/local/go/src/net/http/server.go:1130 +0xbb
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/revision.go:156 +0x212
github.com/couchbase/sync_gateway/db.func·019(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:481 +0x312
github.com/couchbase/sync_gateway/base.func·001(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4ecf70, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:77 +0x76
github.com/couchbase/go-couchbase.func·016(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:684 +0x8e
github.com/couchbase/go-couchbase.(*Bucket).update(0xc2081afba0, 0xc208310d20, 0x28, 0x0, 0xc20834f228, 0x5a175aed00000002, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:663 +0xd1
github.com/couchbase/go-couchbase.(*Bucket).WriteUpdate(0xc2081afba0, 0xc208310d20, 0x28, 0x0, 0xc20834f288, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/go-couchbase/client.go:689 +0xd4
github.com/couchbase/sync_gateway/base.CouchbaseBucket.WriteUpdate(0xc2081afba0, 0xc20800b440, 0x1a, 0xaef6e0, 0x7, 0xc20802b700, 0x7, 0x0, 0x0, 0x0, ...)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/base/bucket.go:81 +0x9c
<autogenerated>:73 +0xfd
github.com/couchbase/sync_gateway/db.(*Database).updateDoc(0xc20824ad00, 0xc208310d20, 0x28, 0x0, 0xc208227040, 0x0, 0x0, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:650 +0x5b1
github.com/couchbase/sync_gateway/db.(*Database).PutExistingRev(0xc20824ad00, 0xc208310d20, 0x28, 0xc208310c00, 0xc2082fa770, 0x7, 0x7, 0x0, 0x0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/db/crud.go:445 +0x447
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/bulk_api.go:397 +0xd45
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:159 +0x4b8
github.com/couchbase/sync_gateway/rest.func·015(0x7f7c74a0e4c8, 0xc2082fc500, 0xc2082504e0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/handler.go:86 +0x7d
net/http.HandlerFunc.ServeHTTP(0xc2081b86a0, 0x7f7c74a0e4c8, 0xc2082fc500, 0xc2082504e0)
/usr/local/go/src/net/http/server.go:1265 +0x41
github.com/gorilla/mux.(*Router).ServeHTTP(0xc2082a4be0, 0x7f7c74a0e4c8, 0xc2082fc500, 0xc2082504e0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/gorilla/mux/mux.go:86 +0x29e
github.com/couchbase/sync_gateway/rest.func·017(0x7f7c74a0e4c8, 0xc2082fc500, 0xc2082504e0)
/home/couchbase/jenkins/workspace/sync-gateway-unix-builds/release/1.1.0/enterprise/app-under-test/sync_gateway/src/github.com/couchbase/sync_gateway/rest/routing.go:236 +0x32f
net/http.HandlerFunc.ServeHTTP(0xc2082c6e60, 0x7f7c74a0e4c8, 0xc2082fc500, 0xc2082504e0)
/usr/local/go/src/net/http/server.go:1265 +0x41
net/http.serverHandler.ServeHTTP(0xc2082f94a0, 0x7f7c74a0e4c8, 0xc2082fc500, 0xc2082504e0)
/usr/local/go/src/net/http/server.go:1703 +0x19a
net/http.(*conn).serve(0xc2082fc3c0)
/usr/local/go/src/net/http/server.go:1204 +0xb57
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:1751 +0x35e
2015-07-10T23:54:16.561+08:00 HTTP:  #050: GET /
2015-07-10T23:54:16.561+08:00 HTTP+: #050:     --> 200   (0.2 ms)



and I create a issue on sync gateway as issue 
Reply all
Reply to author
Forward
0 new messages