Details
-
Bug
-
Resolution: Fixed
-
Major
-
5.5.0
-
Untriaged
-
-
No
Description
Build : 5.1.0-1382
Trying to pause a function that is deployed and currently in bootstrap mode results in an error msg on the UI - Function "firstFunction" may be undergoing bootstrap. Please try later.
Upon inspecting the UI diag logs, it looks like the eventing service crashed under this scenario:
Service 'eventing' exited with status 134. Restarting. Messages: /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/eventing/util/retry.go:64 +0x51 fp=0xc422487068 sp=0xc422487000 github.com/couchbase/eventing/consumer.(*Consumer).sendDcpEvent(0xc420b42580, 0xc42123ca80, 0xc422487200) /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/eventing/consumer/handle_messages.go:278 +0x560 fp=0xc422487208 sp=0xc422487068 github.com/couchbase/eventing/consumer.(*Consumer).processEvents(0xc420b42580) /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/eventing/consumer/process_events.go:68 +0x38b4 fp=0xc422487fd8 sp=0xc422487208 runtime.goexit() /home/couchbase/.cbdepscache/exploded/x86_64/go-1.8.3/go/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc422487fe0 sp=0xc422487fd8 created by github.com/couchbase/eventing/consumer.(*Consumer).HandleV8Worker /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/eventing/consumer/v8_consumer.go:237 +0x6bd [goport(/opt/couchbase/bin/eventing-producer)] 2017/11/08 01:33:37 child process exited with status 134
Steps :
1. Create a src_bucket, dst_bucket and a metadata bucket.
2. Create a function on update like below :
function OnUpdate(doc, meta)
function OnDelete(doc) {
}
3. Deploy the function.
4. Load 1M items in the src bucket
5. After 10-15s, try to pause the Function.
6. An error msg is flashed on the UI : "Function "firstFunction" may be undergoing bootstrap. Please try later."
7. Inspect the Diag logs on the UI. You will see the above mentioned crash stack trace.