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

Log messages going to stderr, bypassing client log_callback

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • techdebt-backlog
    • .master
    • forestdb
    • None
    • Untriaged
    • MacOSX 64-bit
    • Unknown

    Description

      ForestDB is writing to stderr whenever a database is opened:
      [FDB INFO] Forestdb opened database file /tmp/forest_temp.fdb
      This happens because fdb_log is called and there is no long callback registered. But it's impossible for the client to have registered a log callback, because this happens in the middle of fdb_open before the client even has a database handle:

          frame #0: 0x00000001063df42f CBForest Tests`::fdb_log(log_callback=0x0000000000000000, status=FDB_RESULT_SUCCESS, format="Forestdb blockcache size %lld initialized in %ld us\n") + 1039 at filemgr.cc:173
          frame #1: 0x000000010645675b CBForest Tests`::bcache_init(nblock=2048, blocksize=4096) + 2795 at blockcache.cc:1438
          frame #2: 0x00000001063df582 CBForest Tests`::filemgr_init(config=0x00007fff5fbfd610) + 130 at filemgr.cc:235
          frame #3: 0x0000000106492b23 CBForest Tests`::fdb_init(config=0x0000613000033c18) + 2451 at forestdb.cc:711
        * frame #4: 0x0000000106493677 CBForest Tests`::fdb_open(ptr_fhandle=0x0000613000033ce0, filename="/tmp/forest_temp.fdb", fconfig=0x0000613000033c18) + 1015 at forestdb.cc:801
      ...
      

      I would prefer that ForestDB not write to stderr without my consent.

      Attachments

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

        Activity

          People

            tai.tran Tai Tran (Inactive)
            jens Jens Alfke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty