[SERVER-12653] Server logging uses wrong unit on compact Created: 07/Feb/14  Updated: 11/Jul/16  Resolved: 07/Feb/14

Status: Closed
Project: Core Server
Component/s: Logging
Affects Version/s: 2.4.9
Fix Version/s: 2.6.0-rc0

Type: Bug Priority: Minor - P4
Reporter: Teemu Ikonen Assignee: Matt Kangas
Resolution: Done Votes: 0
Labels: pull-request
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

Compact any large collection.

Participants:

 Description   

I believe the reported paging speed (0.0559..) here is actually MB/msec instead of MB/s as reported in this mongodb.log.

....
Thu Feb 6 06:45:26.332 [conn4828] compact begin extent #28 for namespace tehdb.inbox
Thu Feb 6 06:45:26.332 [conn4828] compact paging in len=2146.43MB
Thu Feb 6 06:46:04.722 [conn4828] compact end paging in 38389ms 0.0559125MB/sec
Thu Feb 6 06:46:04.722 [conn4828] compact copying records
Thu Feb 6 06:46:56.813 [conn4828] compact finished extent #28 containing 244554 documents (617.731MB) oldPadding: 1.05617 1
...



 Comments   
Comment by Matt Kangas [ 07/Feb/14 ]

Merged in https://github.com/mongodb/mongo/commit/bde6bb4d8887760e2f54798eb54866de029601c1

commit bde6bb4d8887760e2f54798eb54866de029601c1
Refs: master, <origin/HEAD>, <origin/master>, r2.5.5-79-gbde6bb4
Author:     Reno Reckling <reno.reckling@mayflower.de>
AuthorDate: Fri Feb 7 15:28:36 2014 +0100
Commit:     Matt Kangas <matt.kangas@mongodb.com>
CommitDate: Fri Feb 7 16:15:05 2014 -0500
 
    fix compaction "end paging in" unit to MB/s like the message states
 
    Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>

Comment by Reno Reckling [ 07/Feb/14 ]

proposed pull request: https://github.com/mongodb/mongo/pull/630

Generated at Thu Feb 08 03:29:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.