Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-14078

Verify >1 local interface works with isself

    XMLWordPrintable

Details

    • ALL
    • Hide
      1. Create a second loopback interface with IP address 127.0.0.2.
      2. Start mongod with bindip of 127.0.0.1 on default port as part of replset "rs1"
      3. Start mongod with bindip of 127.0.0.2 on default port as part of replset "rs1"
      4. Run rs.initiate() with a config containing both hosts.

      Expected behavior is successful initiation and correctly behaving replica set.

      Suspected actual behavior: uassert with code 13278, maybe 13279.

      Show
      Create a second loopback interface with IP address 127.0.0.2. Start mongod with bindip of 127.0.0.1 on default port as part of replset "rs1" Start mongod with bindip of 127.0.0.2 on default port as part of replset "rs1" Run rs.initiate() with a config containing both hosts. Expected behavior is successful initiation and correctly behaving replica set. Suspected actual behavior: uassert with code 13278, maybe 13279.

    Description

      The isself code currently seems to be less than correct if more than one local interface is used as it treats them all as the same host, so isself will return true when it shouldn't.

      Attachments

        Issue Links

          Activity

            People

              matt.dannenberg Matt Dannenberg
              scotthernandez Scott Hernandez
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: