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

Running cbcollect_info on windows may cause eacces errors in chronicle

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Unknown

    Description

      As part of cbcollect_info we collect raw logs and snapshots from chronicle. Python doesn't set FILE_SHARE_DELETE flag on file handles (some history is available here). That means that if cbcollect_info happens to hold an open handle for one of the files managed by chronicle when the latter wants to delete them, chronicle will get an eacces error.

      I'd really want us to keep collecting at least the log files (because they are a very useful tool for debugging at least at the moment). It's probably not easy to pass the required flag on Windows specifically. But we could probably forgo collecting this information just on windows. Alternatively I could look into not making such spurious errors fatal.

      Attachments

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

        Activity

          People

            dfinlay Dave Finlay
            Aliaksey Artamonau Aliaksey Artamonau (Inactive)
            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