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

Cursor dropping triggering too aggressively

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 6.0.2, 6.5.0
    • 5.5.0, 5.5.1, 5.5.2, 5.5.3, 6.0.0, 6.0.1
    • couchbase-bucket
    • None
    • Untriaged
    • Unknown

    Description

      Cursor dropping appears to trigger too aggressively for the checkpoint memory condition (see MB-29227).

      Adding additional debug logging, we see that the calculation for cursor_dropping_checkpoint_mem_upper_mark bytes value is incorrect - e.g.

      261:2019-04-24T12:22:16.042548+01:00 INFO (default) Triggering cursor dropping as checkpoint_memory (388 MB) exceeds cursor_dropping_checkpoint_mem_upper_mark (50%, 0 MB). Attempting to free 877 MB of memory.
      

      This is attempting to trigger cursor dropping if the checkpoint memory (388 MB) exceeds 50% of the bucket_quota, however it is incorrectly calculating this limit as 0 MB. As such it is always triggering cursor dropping - and moreover is attempting to free more memory than necessary.

      Attachments

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

        Activity

          People

            owend Daniel Owen
            drigby Dave Rigby (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty