Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-52067

[Magma volume test, 1% DGM/Functional 40%] Few create timer operations are failing with LCB_ERR_DOCUMENT_NOT_FOUND (301)

    XMLWordPrintable

Details

    Description

      STEPS

      1. Create a 3 node cluster having only data service.
      2. Create required buckets and collections.
      3. Create 20000000 items sequentially
      4. Update 20000000 RandomKey keys to create 50 percent fragmentation
      5. Create 20000000 items sequentially
      6. Update 20000000 RandomKey keys to create 50 percent fragmentation
      7. Rebalance in 1 eventing node.
      8. 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sujay.gad Sujay Gad
            sujay.gad Sujay Gad
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty