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

memcached logs always use Z (UTC) for timezone when logging

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 6.0.0, 5.5.0, 5.5.1, 5.5.2
    • 6.0.0
    • memcached
    • None
    • Untriaged
    • Unknown

    Description

      It looks like some recent changes in the memcached logging has caused the timezone in the memcached logs to be always printed with Z, referring to UTC, even when the timezone of the system (and other logs) is different.

      Looks like the "Z" is hard coded here https://github.com/couchbase/kv_engine/blob/master/logger/spdlogger.cc#L44

      Note the time is not actually converted to UTC, it is still using the system's local timezone. This is misleading as the reader may (quite reasonably) think the log message refers to UTC and hence struggle to correlate log messages.

      Attachments

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

        Activity

          Build couchbase-server-5.5.3-4005 contains kv_engine commit c33f0c1 with commit message:
          MB-31636: Print correct timezone in log messages

          build-team Couchbase Build Team added a comment - Build couchbase-server-5.5.3-4005 contains kv_engine commit c33f0c1 with commit message: MB-31636 : Print correct timezone in log messages

          Build couchbase-server-6.5.0-1447 contains kv_engine commit 6d2735a with commit message:
          Merge remote-tracking branch 'couchbase/alice'

          build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1447 contains kv_engine commit 6d2735a with commit message: Merge remote-tracking branch 'couchbase/alice'

          Build couchbase-server-6.5.0-1447 contains kv_engine commit d0c17cc with commit message:
          MB-31619: Print correct timezone in log messages

          build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1447 contains kv_engine commit d0c17cc with commit message: MB-31619 : Print correct timezone in log messages

          Build couchbase-server-6.0.1-1970 contains kv_engine commit c33f0c1 with commit message:
          MB-31636: Print correct timezone in log messages

          build-team Couchbase Build Team added a comment - Build couchbase-server-6.0.1-1970 contains kv_engine commit c33f0c1 with commit message: MB-31636 : Print correct timezone in log messages

          Build couchbase-server-6.5.0-1707 contains kv_engine commit c33f0c1 with commit message:
          MB-31636: Print correct timezone in log messages

          build-team Couchbase Build Team added a comment - Build couchbase-server-6.5.0-1707 contains kv_engine commit c33f0c1 with commit message: MB-31636 : Print correct timezone in log messages

          People

            drigby Dave Rigby
            david.saadeh David Saadeh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty