Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
7.1.1
-
Enterprise Edition 7.1.1 build 3027
-
Triaged
-
Centos 64-bit
-
-
1
-
No
-
KV May 22, KV June 2022
Description
STEPS
- Create a 3 node cluster having only data service.
- Create required buckets and collections.
- Create 20000000 items sequentially
- Update 20000000 RandomKey keys to create 50 percent fragmentation
- Create 20000000 items sequentially
- Update 20000000 RandomKey keys to create 50 percent fragmentation
- Rebalance in 1 eventing node.
- Create and deploy 3 eventing handlers - no op, bucket op and timer.
OBSERVATION
Few create timer operations are failing with LCB_ERR_DOCUMENT_NOT_FOUND (301).
Timer handler code
function OnUpdate(doc, meta) {
|
log("Doc created/updated", meta.id); |
var expiry = new Date(); |
expiry.setSeconds(expiry.getSeconds() + 3); |
|
var context = {docID : meta.id, random_text : "e6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh07Aumoe6cZZGHuh07Aumoe6cZZGHuh07Aumoe6"}; |
createTimer(timerCallback, expiry, meta.id, context);
|
}
|
|
function timerCallback(context) {
|
var result= couchbase.insert(dst_bucket,{"id":context.docID},context.random_text); |
log(result);
|
}
|
|
function OnDelete(meta) {
|
var expiry = new Date(); |
expiry.setSeconds(expiry.getSeconds() + 30); |
|
var context = {docID : meta.id };
|
createTimer(NDtimerCallback, expiry, meta.id, context);
|
}
|
|
function NDtimerCallback(context) {
|
var meta={"id":context.docID} |
var result = couchbase.delete(dst_bucket,meta);
|
log(result);
|
}
|
NOTE
This is the first time we are running these tests as Eventing service is going to be supported with Magma storage engine from 7.1.1 onwards.
Attachments
For Gerrit Dashboard: MB-52067 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
175872,2 | MB-52067: Simplify completeBGFetchForSingleItem with early exits | neo | kv_engine | Status: NEW | 0 | -1 |
175873,1 | MB-52067: Tighten bgfetch preconditions | neo | kv_engine | Status: NEW | 0 | -1 |
174735,5 | MB-52067: Handle not found cas op status during counter store | neo | kv_engine | Status: MERGED | +2 | +1 |
175508,4 | MB-52067: Move WrappedServerCookieIface to allow use from elsewhere | neo | kv_engine | Status: MERGED | +2 | +1 |
175509,1 | MB-52067: WIP Prevent bgfetch result causing Increment to fail | neo | kv_engine | Status: ABANDONED | -1 | -1 |
175871,10 | MB-52067: Ensure bgfetch does not short circuit multi-phase ops | neo | kv_engine | Status: MERGED | +2 | +1 |
176224,1 | Merge branch 'neo' | master | kv_engine | Status: MERGED | +2 | +1 |
176455,1 | Merge commit '84f34ca1' into master | master | kv_engine | Status: ABANDONED | 0 | 0 |
176458,1 | Merge commit '84f34ca1' into master | master | kv_engine | Status: MERGED | +2 | +1 |
177025,1 | Merge branch 'neo' into master | master | kv_engine | Status: MERGED | +2 | +1 |
177038,3 | MB-52067: BGFetcher return success for success or no_such_key | neo | kv_engine | Status: MERGED | +2 | +1 |
177095,1 | Merge remote-tracking branch 'couchbase/neo' into 'couchbase/master' | master | kv_engine | Status: MERGED | +2 | +1 |