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

VBucketFileWriter should close the chunk before closing the snapshot file

    XMLWordPrintable

Details

    Description

      Currently the snapshot file is closed before closing this data chunk. This is invalid because in the case where the (most likely Rift) data writer is asynchronous (such as it is/will be for cloud) it's possible for the last persisted seqno to be ahead of the data that we have on disk.

      If we commit the data that we have on disk (which will be a blocking operation) then we persist the snapshot file we know that we have all the data.

      Attachments

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

        Activity

          People

            james.lee James Lee
            james.lee James Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty