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

Replication should differentiate between deleted and expired items

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.8.1, 2.0
    • Fix Version/s: bug-backlog
    • Component/s: couchbase-bucket
    • Security Level: Public
    • Labels:
      None
    • Triage:
      Untriaged

      Description

      We keep track of expired items per vbucket and only actually account for an expired item in the stats if one of these scenarios occurs.

      1. The item is expired by the expiry/item pager
      2. The item is accessed by an operation (eg. get or set) and since the item is expired it is deleted.

      There is actually a third way that an item can be expired and that is through replication. If an item is expired on an active vbucket then a "delete" is replicated to the replica vbuckets. Since we don't differentiate between a delete and an expiration the replica vbucket must assume this is a delete and as a result cannot properly update its expired items stats.

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

        Activity

        Hide
        drigby Dave Rigby added a comment -

        Changing this to Minor - while it's true the replica expired item stats are inaccurate (or at least should be interpreted different to active), to me this is only a secondary stat (of replica bucket) and the consequences of being wrong / inaccurate are not serious.

        Show
        drigby Dave Rigby added a comment - Changing this to Minor - while it's true the replica expired item stats are inaccurate (or at least should be interpreted different to active), to me this is only a secondary stat (of replica bucket) and the consequences of being wrong / inaccurate are not serious.

          People

          • Assignee:
            drigby Dave Rigby
            Reporter:
            mikew Mike Wiederhold
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Gerrit Reviews

              There are no open Gerrit changes