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

Delete VBucket doesn't reset the vb file revision in the RO kvstore

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.5.0
    • 4.6.2
    • couchbase-bucket
    • None
    • Triaged
    • Unknown

    Description

      If the VB's file revision is greater than its default value (due to normal compaction), and then that vbucket is deleted, we do not reset the file-revision which the RO KVStore holds. If that VB is recreated on the node we begin to spam the logs with open errors because every time the RO KVStore accesses the file, it will first try with the high incorrect revision.

      So far this appears to only be a problem with log spamming, the couch-kvstore code always finally succeeds to open the correct VB revision because it does a getdirent and scan for a VB file to open.

      The fix is to ensure that the RO KVStore has the rev-id cleared on either VB delete or when a VB is recreated.

      Attachments

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

        Activity

          People

            jwalker Jim Walker
            jwalker Jim Walker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty