Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1569

Low diskspace warning for compaction should be logged at error level

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.3
    • Component/s: Database Core
    • Labels:
      None
    • Skill Level:
      New Contributors Level (Easy)

      Description

      In production we're running CouchDB at log level 'error', because running at 'info' is too verbose for production. We suspect automatic compaction might not be running due to low diskspace.

      http://wiki.apache.org/couchdb/Compaction#Automatic_Compaction says: "When there's not enough free disk space to compact a particular database or view index, a warning message is logged." But there is no warning log level in CouchDB as far as I know and the can_db_compact function in src/couchdb/couch_compaction_daemon.erl seems to log the message about diskspace being too low at info level. Could this be changed to error level?

        Attachments

        1. 3_patch_warn.txt
          1 kB
          Joan Touzet
        2. patch_updated.txt
          1 kB
          Russell Branca
        3. patch.txt
          1 kB
          Russell Branca

          Activity

            People

            • Assignee:
              tilgovi Randall Leeds
              Reporter:
              breun Nils Breunese
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: