[SERVER-47362] mongo shell emits replica set monitor messages every 10 seconds Created: 06/Apr/20  Updated: 21/May/20  Resolved: 21/May/20

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Bruce Lucas (Inactive) Assignee: Gabriel Russell (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-46932 Shell produces json output Closed
Operating System: ALL
Sprint: Service arch 2020-05-18, Service arch 2020-06-01
Participants:

 Description   

If you define a replica set using "127.0.0.1" hosts but connect to it from the mongo shell using "localhost" in the uri the connection is successful and everything works, but the mongo shell emits the following annoying message every 10 seconds:

{"t":{"$date":"2020-04-06T19:13:03.014Z"},"s":"I", "c":"-",       "id":4333225,"ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM {setName} host {addr} was removed from the topology.","attr":{"setName":"r","addr":"localhost:27017"}}
{"t":{"$date":"2020-04-06T19:13:03.015Z"},"s":"I", "c":"-",       "id":4333225,"ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM {setName} host {addr} was removed from the topology.","attr":{"setName":"r","addr":"localhost:27017"}}
{"t":{"$date":"2020-04-06T19:13:03.015Z"},"s":"I", "c":"-",       "id":4333225,"ctx":"ReplicaSetMonitor-TaskExecutor","msg":"RSM {setName} host {addr} was removed from the topology.","attr":{"setName":"r","addr":"localhost:27017"}}

This is seen in 4.3.5 and master, but not in 4.2 and earlier.



 Comments   
Comment by Bruce Lucas (Inactive) [ 07/Apr/20 ]

Also, possibly related, you get messages from the shell about inactive pooled connections being closed that were not generated in 4.2, although this happens whether or not the connection string differs from the configured host.

Generated at Thu Feb 08 05:13:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.