Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5339

solr-core-4.4's ip is not right when the os is centos 5.6 sometimes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Invalid
    • 4.4
    • None
    • contrib - Clustering
    • None
    • centos 5.6

    Description

      when I install the solr-cloud on the centos5.6 . it is strange that sometimes ,the ip is not correct which is displayed on the http://192.168.10.54:8081/solr/#/~cloud , it is 202.106.199.36,but my actual is 192.168.10.54. but on the windows it is right. and i found it is because of hostaddress = InetAddress.getLocalHost().getHostAddress(); in ZkController.java . sometimes the method which get ip is not correct .we should not trust . so i think in linux we should not use this method

      Attachments

        Activity

          People

            Unassigned Unassigned
            changdejie dejie Chang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: