Project

General

Profile

Actions

Bug #44409

closed

log: the time precision of log is only milliseconds because the option log_coarse_timestamps doesn’t work well

Added by Ivan Guan about 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
% Done:

0%

Source:
Tags:
Backport:
octopus, nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

version: nautilus 14.2.5

description:
client.log
...
2020-03-04 07:53:11.597 7f4809ffb700 15 client.83972 renew_caps requesting from mds.1
2020-03-04 07:53:11.597 7f4809ffb700 10 client.83972 renew_caps mds.1
2020-03-04 07:53:11.597 7f4809ffb700 20 client.83972 trim_cache size 0 max 16384
2020-03-04 07:53:11.598 7f4808ff9700 10 client.83972 handle_client_session client_session(renewcaps seq 2) v1 from mds.1
2020-03-04 07:53:12.598 7f4809ffb700 20 client.83972 trim_cache size 0 max 16384
2020-03-04 07:53:13.599 7f4809ffb700 20 client.83972 trim_cache size 0 max 16384
2020-03-04 07:53:14.599 7f4809ffb700 20 client.83972 trim_cache size 0 max 16384
2020-03-04 07:53:15.600 7f4809ffb700 20 client.83972 trim_cache size 0 max 16384
...

As we can see the time precision of log is only milliseconds in my test env though i set log_coarse_timestamps option to true and
restart the daemon. After reading the code about Log module i think the commit a747aeac13daf3dba43343120659e802cb569f6b may have
caused this bug because it leads to the Log:clock useless. Although we changed the Log::clock to get time by fine_now() by
setting log_coarse_timestamps option to true, the time format is still coarse because the Entry only get time through its own
clock member instead of Log::clock.


Related issues 2 (0 open2 closed)

Copied to Ceph - Backport #46014: nautilus: log: the time precision of log is only milliseconds because the option log_coarse_timestamps doesn’t work wellResolvedNathan CutlerActions
Copied to Ceph - Backport #46015: octopus: log: the time precision of log is only milliseconds because the option log_coarse_timestamps doesn’t work wellResolvedNathan CutlerActions
Actions #2

Updated by Nathan Cutler about 4 years ago

  • Status changed from New to Fix Under Review
  • Backport set to nautilus
Actions #3

Updated by Nathan Cutler about 4 years ago

  • Backport changed from nautilus to octopus, nautilus
Actions #4

Updated by Nathan Cutler almost 4 years ago

  • Pull request ID set to 33720
Actions #5

Updated by Kefu Chai almost 4 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #6

Updated by Nathan Cutler almost 4 years ago

  • Copied to Backport #46014: nautilus: log: the time precision of log is only milliseconds because the option log_coarse_timestamps doesn’t work well added
Actions #7

Updated by Nathan Cutler almost 4 years ago

  • Copied to Backport #46015: octopus: log: the time precision of log is only milliseconds because the option log_coarse_timestamps doesn’t work well added
Actions #8

Updated by Nathan Cutler over 3 years ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

Actions

Also available in: Atom PDF