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

[FTS] moss: Store.Stats() should emit FileInfo's for files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.0.0
    • 5.0.0
    • fts, moss
    • None
    • Untriaged
    • Unknown

    Description

      Hi Sundar,
      There's some stats that moss provides, including a list of all the files that it thinks it has open, related to the Store.Stats() API, which invokes the store.go allFiles() function...

      https://github.com/couchbase/moss/blob/master/store.go#L309

      An improvement is that when allFiles() reads the directory and gathers each FileInfo, it might as well emit that info into the resulting map (e.g., the file's name, size, mode, modTime, isDir).

      Doing this will allow us also to correlate when moss thinks it has a non-zero file-ref, but that file actually doesn't even exist on disk, related to issues like MB-24490 and to MB-24086.

      Cheers,
      steve

      Attachments

        For Gerrit Dashboard: MB-24491
        # Subject Branch Project Status CR V

        Activity

          People

            sundar Sundar Sridharan (Inactive)
            steve Steve Yen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty