[SERVER-7869] Display error code when logRotate is unable to rename log file Created: 07/Dec/12  Updated: 11/Jul/16  Resolved: 07/Dec/12

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 2.2.3, 2.3.2

Type: Bug Priority: Major - P3
Reporter: Tad Marshall Assignee: Tad Marshall
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-8160 The rotateLogs() function doesn't pri... Closed
Related
is related to SERVER-6896 Server crashes if logRotate is issued... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

When the rename operation fails in a logRotate, we print the 'from' and 'to' filenames but not the error code we got from the failing operation.

The logged line is also missing an 'endl', so the Fatal Assertion that follows is logged on the same line.



 Comments   
Comment by auto [ 08/Jan/13 ]

Author:

{u'date': u'2012-12-07T09:29:43Z', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}

Message: SERVER-7869 Report errno and description on file rename failure

Also report target filename on rename failure at startup, add
missing 'endl' to logRotate rename failure log line.
Branch: v2.2
https://github.com/mongodb/mongo/commit/d5a4514a067350e10d17f83a15178a09fa662669

Comment by auto [ 07/Dec/12 ]

Author:

{u'date': u'2012-12-07T09:29:43Z', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}

Message: SERVER-7869 Report errno and description on file rename failure

Also report target filename on rename failure at startup, add
missing 'endl' to logRotate rename failure log line.
Branch: master
https://github.com/mongodb/mongo/commit/f901c05c8b61de6346459db8fc9d9e47a48a7bed

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