Description
Build: 6.6.0-7854
While testing some scenario , encountered pause hung on vagrant machine
function OnUpdate(doc, meta) {
|
var expiry = new Date();
|
expiry.setSeconds(expiry.getSeconds() + 30);
|
if (meta.id.includes("_")){
|
var res = meta.id.split("_")[1];
|
if(parseInt(res)%5==0){
|
var context = {docID : meta.id, random_text : 'e6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0'};
|
createTimer(timerCallback, expiry, meta.id, context);
|
}
|
}
|
}
|
function OnDelete(meta) {
|
var expiry = new Date();
|
expiry.setSeconds(expiry.getSeconds() + 30);
|
if (meta.id.includes("_")){
|
var res = meta.id.split("_")[1];
|
if(parseInt(res)%5==0){
|
var context = {docID : meta.id};
|
var cancelled=cancelTimer(NDtimerCallback,meta.id);
|
if(cancelled){
|
createTimer(NDtimerCallback, expiry, meta.id, context);
|
}
|
}
|
}
|
}
|
function NDtimerCallback(context) {
|
delete dst_bucket[context.docID];
|
}
|
function timerCallback(context) {
|
dst_bucket[context.docID] = 'from timerCallback';
|
}
|
API status
{
|
"apps": [
|
{
|
"composite_status": "pausing",
|
"name": "timer_op",
|
"num_bootstrapping_nodes": 0,
|
"num_deployed_nodes": 1,
|
"deployment_status": true,
|
"processing_status": false
|
}
|
],
|
"num_eventing_nodes": 1
|
}
|