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

Compaction: Report a useful error message when temporary files cannot be created

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Critical
    • bug-backlog
    • 2.5.1, 2.5.0, 3.0
    • storage-engine
    • Security Level: Public
    • CentOS 6u5
    • Release Note

    Description

      The couch_compact program appears to create a number of temporary files (using tmpdir()) during compaction (at a guess for compacting the b-tree index). If these files cannot be created compaction fails with a generic error message:

      [couchdb:info,2014-06-26T1:06:41.785,ns_1@localhost:<0.29571.6153>:couch_log:info:39]Native compactor output: Couchstore error: no such file

      It would be extremely useful if the was more meaningful, and actually pointed out the reason for the failure.

      Steps to reproduce:

      Run couch_compact with the attached couchdb file (note: just contains test data) with /tmp set to be unwritable to the couchbase user.

      $ chmod o-w /tmp
      $ sudo -u couchbase -s
      $ /opt/couchbase/bin/couch_compact 0.couch.1 foo.out
      Couchstore error: no such file

      Attachments

        Issue Links

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

          Activity

            People

              tai.tran Tai Tran (Inactive)
              drigby Dave Rigby (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty