[SERVER-1515] Find better way to implement HostAndPort::isSelf() Created: 29/Jul/10  Updated: 12/Jul/16  Resolved: 28/Oct/10

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

Type: Task Priority: Major - P3
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-1722 sysctl.net.ipv4.ip_nonlocal_bind=1 br... Closed
Participants:

 Description   

On linux can use getifaddrs()



 Comments   
Comment by auto [ 20/Nov/10 ]

Author:

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

Message: support sub-second timeouts SERVER-1515
/mongodb/mongo/commit/ad8c021c546b687e4bf9327aad50854fa0f0d19c

Comment by Eliot Horowitz (Inactive) [ 28/Oct/10 ]

Did the connect to self hack

Comment by Mathias Stearn [ 27/Sep/10 ]

Bumping for solaris and windows. Fixed on other OSes.

Comment by Richard Kreuter (Inactive) [ 20/Sep/10 ]

Mathias asked me to comment: some systems, e.g, Postfix and maybe also PostgreSQL, let the user specify what IP addresses/hostnames/subnets count as "self".

Comment by auto [ 17/Sep/10 ]

Author:

{'login': 'alerner', 'name': 'Alberto Lerner', 'email': 'alerner@10gen.com'}

Message: SERVER-1515 interface may not have an address
http://github.com/mongodb/mongo/commit/6f95b432442c379c94a236c59fdd8c88788d922b

Comment by auto [ 14/Sep/10 ]

Author:

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

Message: Solaris doesn't have getifaddrs SERVER-1515
http://github.com/mongodb/mongo/commit/92eae23284fc4bfa2c648a6b603b16e37a4f635d

Comment by auto [ 14/Sep/10 ]

Author:

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

Message: Remove sameHostname and isLocalHost shortcuts since they make testing isSelf harder SERVER-1515
http://github.com/mongodb/mongo/commit/3326c8e257dc493581c6faccdc25280535ae7342

Comment by auto [ 14/Sep/10 ]

Author:

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

Message: Try using getifaddrs on all non-windows platforms SERVER-1515
http://github.com/mongodb/mongo/commit/8e5e584be426cfb5a6e8bebd5483bbaae4cf834d

Comment by auto [ 14/Sep/10 ]

Author:

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

Message: Use actual port number with getaddrinfo SERVER-1515
http://github.com/mongodb/mongo/commit/36e14406ef837f95defd92f4df68706960a2479c

Comment by auto [ 13/Sep/10 ]

Author:

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

Message: use getifaddrs() on linux SERVER-1515
http://github.com/mongodb/mongo/commit/86f511ead098c9d8512a61b70dad906a9a864779

Comment by auto [ 13/Sep/10 ]

Author:

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

Message: Revert "Revert "Revert "Use serverID in HostAndPort::isSelf SERVER-1515"""

This reverts commit 9dc8c7d0086da36c488afb333bb6621f32faa6c8.
http://github.com/mongodb/mongo/commit/e481f0f5d14f7743474e5c3c0a29d236f8db8e6c

Comment by auto [ 13/Sep/10 ]

Author:

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

Message: Revert "Have ReplicaSets wait for Listener before initializing SERVER-1515"

This reverts commit 4697d9328275b3ba52fb735550657a1e9fbb98a4.
http://github.com/mongodb/mongo/commit/a50ff726212360718dc812bab297c5eef31ba487

Comment by auto [ 10/Sep/10 ]

Author:

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

Message: Have ReplicaSets wait for Listener before initializing SERVER-1515
http://github.com/mongodb/mongo/commit/4697d9328275b3ba52fb735550657a1e9fbb98a4

Comment by auto [ 10/Sep/10 ]

Author:

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

Message: HostAndPort::isSelf() -> ListeningSockets::listeningOn()
No longer assume listening on localhost
SERVER-1515
http://github.com/mongodb/mongo/commit/84abe861b180c42f11d1921ec4c1e642ed4320bf

Comment by auto [ 10/Sep/10 ]

Author:

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

Message: Revert "Revert "Use serverID in HostAndPort::isSelf SERVER-1515""

This reverts commit 3d1faf35fc53e9265838341a8ff2bfc17c75ff7e.
http://github.com/mongodb/mongo/commit/9dc8c7d0086da36c488afb333bb6621f32faa6c8

Comment by auto [ 07/Sep/10 ]

Author:

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

Message: Revert "Use serverID in HostAndPort::isSelf SERVER-1515"

This reverts commit f23ba41ffa20ed398e83348a278bb02500b0c9f5.
http://github.com/mongodb/mongo/commit/3d1faf35fc53e9265838341a8ff2bfc17c75ff7e

Comment by auto [ 07/Sep/10 ]

Author:

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

Message: Use serverID in HostAndPort::isSelf SERVER-1515
http://github.com/mongodb/mongo/commit/f23ba41ffa20ed398e83348a278bb02500b0c9f5

Comment by auto [ 07/Sep/10 ]

Author:

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

Message: support sub-second timeouts SERVER-1515
http://github.com/mongodb/mongo/commit/eca02a4eeccfa8251e6da0fe7fc016d6348370e1

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