[SERVER-1709] IP addresses in addShard assumed to be hostnames Created: 31/Aug/10  Updated: 12/Jul/16  Resolved: 15/Sep/10

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 1.6.2
Fix Version/s: 1.7.1

Type: Bug Priority: Minor - P4
Reporter: David Mytton Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Tue Aug 31 19:34:31 MongoDB starting : pid=3142 port=27019 dbpath=/home/david/mongodb/config/ 64-bit
Tue Aug 31 19:34:31 db version v1.6.2-pre-, pdfile version 4.5
Tue Aug 31 19:34:31 git version: 92d5eb42af2e25ac549d7489d90261c7f6a0e767
Tue Aug 31 19:34:31 sys info: Linux domU-12-31-39-06-79-A1 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41


Operating System: ALL
Participants:

 Description   

if you enter an IP address when executing addShard, mongo assumes it's an hostname and does a DNS lookup on it. This timesout after a long time (~180 seconds or so) and the IP address is used instead, but the DNS lookup occurs every time which means the addShard command takes a long time, as does every further query to the shard.



 Comments   
Comment by Mathias Stearn [ 15/Sep/10 ]

This should be solved in tomorrow's nightly, reopen if you still have issues.

Comment by auto [ 15/Sep/10 ]

Author:

{'login': 'RedBeard0531', 'name': 'Mathias Stearn', 'email': 'mathias@10gen.com'}

Message: Fastpath for resolving numeric IP addresses SERVER-1709
http://github.com/mongodb/mongo/commit/9495380f77a88cb050024d1bc0e2b660d433b577

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