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

Improve warmup behaviour under OOM conditions in value eviction mode

    XMLWordPrintable

Details

    • Triaged
    • No

    Description

      When a user switches from full eviction to value eviction, if the total meta data is bigger than the memory quota of the bucket. Then during warmup keys will not be loaded, the warmup will complete and the bucket will come online. As the key is not in memory, bucket now believes the key does exist, and basically the data is lost!

      As a work around if the user is lucky enough not to do any updates, then they can change the eviction policy back to full and get access to the the data back.

      Unfortunately the only way the user would know that this has happened if they check the memcached.log or if they see a drop in the item count.

      Reproduce

      1. Create a single node cluster
      2. Create default bucket with 100MB quota and full eviction
      3. Insert 3 million items into the bucket

        cbc-pillowfight  -I 3000000 -p superlongnameofkey1234567890123456789012345678902 -M 1
        

      4. Note the item count
      5. Change the eviction policy
      6. During warmup the estimated item count is corrected
      7. When warmup has finished the item count is wrong.

      Attachments

        Issue Links

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

          Activity

            People

              drigby Dave Rigby (Inactive)
              sriram Sriram Ganesan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty