[JAVA-592] make server down log message less noisey Created: 30/Jun/12  Updated: 23/Jul/12  Resolved: 02/Jul/12

Status: Closed
Project: Java Driver
Component/s: Cluster Management
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Ryan Nitz Assignee: Ryan Nitz
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates JAVA-380 Very verbose error messages (continuo... Closed

 Description   

These error messages are much too noisy. The user does not need to see the stack trace because these messages are expected when a server is down and they originate from the RS monitor thread.

The driver should look at the IOException and only display the message (take the source msg?).

Less Noise

06-30-2012 20:42:00 [ReplicaSetStatus:Updater] WARN com.mongodb.ReplicaSetStatus.mmsconfig1 [update:580] - Server seen down: server.something.com/10.137.128.62:27018 - bc:java.net.SocketTimeoutException: connect timed out

Current

06-30-2012 20:42:00 [ReplicaSetStatus:Updater] WARN com.mongodb.ReplicaSetStatus.mmsconfig1 [update:580] - Server seen down: server.something.com/10.137.128.62:27018
java.io.IOException: couldn't connect to [server.something.com/10.137.128.62:27018] bc:java.net.SocketTimeoutException: connect timed out
at com.mongodb.DBPort._open(DBPort.java:222) ~[mongo.jar:na]
at com.mongodb.DBPort.go(DBPort.java:111) ~[mongo.jar:na]
at com.mongodb.DBPort.go(DBPort.java:92) ~[mongo.jar:na]
at com.mongodb.DBPort.findOne(DBPort.java:145) ~[mongo.jar:na]
at com.mongodb.DBPort.runCommand(DBPort.java:156) ~[mongo.jar:na]
at com.mongodb.ReplicaSetStatus$UpdatableNode.update(ReplicaSetStatus.java:507) ~[mongo.jar:na]
at com.mongodb.ReplicaSetStatus$Updater.updateAll(ReplicaSetStatus.java:708) [mongo.jar:na]
at com.mongodb.ReplicaSetStatus$Updater.run(ReplicaSetStatus.java:674) [mongo.jar:na]



 Comments   
Comment by Jeffrey Yemin [ 02/Jul/12 ]

This looks like a duplicate of JAVA-380.

Generated at Thu Feb 08 08:52:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.