[SERVER-37561] Server startupWarnings show spurious empty lines Created: 10/Oct/18  Updated: 29/Oct/23  Resolved: 12/Oct/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.0.3
Fix Version/s: 4.0.4, 4.1.5

Type: Bug Priority: Major - P3
Reporter: Asya Kamsky Assignee: Benjamin Caimano (Inactive)
Resolution: Fixed Votes: 3
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Duplicate
is duplicated by SERVER-37648 Mongo shell report blank startup warn... Closed
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0
Sprint: Service Arch 2018-10-22
Participants:
Case:

 Description   

As of 4.0.3 I see this in the shell:

MongoDB server version: 4.0.3
Server has startup warnings:
2018-10-09T19:06:07.289+0000 W CONTROL  [initandlisten]
2018-10-09T19:06:07.289+0000 W CONTROL  [initandlisten]
2018-10-09T19:06:07.289+0000 I CONTROL  [initandlisten]

Note there is no actual warning here. Same was not there in 4.0.2.

This is causing cloud monitoring to flag host as having startup warnings.



 Comments   
Comment by Githook User [ 12/Oct/18 ]

Author:

{'name': 'Ben Caimano', 'email': 'ben.caimano@10gen.com'}

Message: SERVER-37561 Server startupWarnings show spurious empty lines

(cherry picked from commit 8d2a1d17f4fc43f9ed358fd53c90234dc07fa45b)
Branch: v4.0
https://github.com/mongodb/mongo/commit/0145c56be365c354256cc9bfb2fa78858fc99ef4

Comment by Githook User [ 12/Oct/18 ]

Author:

{'name': 'Ben Caimano', 'email': 'ben.caimano@10gen.com'}

Message: SERVER-37561 Server startupWarnings show spurious empty lines
Branch: master
https://github.com/mongodb/mongo/commit/8d2a1d17f4fc43f9ed358fd53c90234dc07fa45b

Comment by Asya Kamsky [ 10/Oct/18 ]

In daily ping in cloud monitoring:

"startupWarnings": {
        "$clusterTime": {
            "clusterTime": {
                "$timestamp": {
                    "t": 1539207851,
                    "i": 565
                }
            },
            "signature": {
                "keyId": 6592596669886366000,
                "hash": {
                    "$binary": "7Cw5qZuhyeJsbmZ6E/xpzGbRtWs=",
                    "$type": 0
                }
            }
        },
        "totalLinesWritten": 3,
        "log": [
            "2018-10-09T19:06:07.289+0000 W CONTROL  [initandlisten] ",
            "2018-10-09T19:06:07.289+0000 W CONTROL  [initandlisten] ",
            "2018-10-09T19:06:07.289+0000 I CONTROL  [initandlisten] "
        ],
        "ok": 1,
        "operationTime": {
            "$timestamp": {
                "t": 1539207851,
                "i": 565
            }
        }
    },

In 4.0.2 it was

    "startupWarnings": {
        "$clusterTime": {
            "clusterTime": {
                "$ts": 1538571723,
                "$inc": 1
            },
            "signature": {
                "keyId": 6592596669886366000,
                "hash": "<Binary Data>"
            }
        },
        "totalLinesWritten": 0,
        "log": [],
        "ok": 1,
        "operationTime": {
            "$ts": 1538571723,
            "$inc": 1
        }
    },

Generated at Thu Feb 08 04:46:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.