Bug #44409
closedlog: the time precision of log is only milliseconds because the option log_coarse_timestamps doesn’t work well
0%
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.
Updated by Ivan Guan about 4 years ago
Updated by Nathan Cutler about 4 years ago
- Status changed from New to Fix Under Review
- Backport set to nautilus
Updated by Nathan Cutler about 4 years ago
- Backport changed from nautilus to octopus, nautilus
Updated by Kefu Chai almost 4 years ago
- Status changed from Fix Under Review to Pending Backport
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
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
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".