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

[Import] [Export] Don't wrap dataset related filesystem errors

    XMLWordPrintable

Details

    • Untriaged
    • 0
    • No

    Description

      What's the issue?

      As it stands, we wrap the error returned to the user when trying to create their dataset location ([source|https://github.com/couchbase/backup/blob/3b630f9ff4e900fa447e9bf9a0ebab0260dab42b/jsondata/writer.go#L53).

      2023-06-24T11:38:07.232+00:00 JSON export failed: failed to get export transferable: failed to create JSON sink: failed to create writer: failed to create file at './travel.json': open ./travel.json: permission denied
      JSON export failed: permission denied
      

      This results in errors that are misleading without using --verbose.

      What's the fix?
      We should avoid wrapping the error.

      Attachments

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

        Activity

          People

            owend Daniel Owen
            james.lee James Lee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change

                PagerDuty