Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-12943

Set sun.net.inetaddr.ttl in HBase

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • None
    • None

    Description

      The default value of config: sun.net.inetaddr.ttl is -1 and the java processes will cache the mapping of hostname to ip address forever, See: http://docs.oracle.com/javase/7/docs/technotes/guides/net/properties.html

      But things go wrong when a regionserver with same hostname and different ip address rejoins the hbase cluster. The HMaster will get wrong ip address of the regionserver from this cache and every region assignment to this regionserver will be blocked for a time because the HMaster can't communicate with the regionserver.

      A tradeoff is to set the sun.net.inetaddr.ttl to 10m or 1h and make the wrong cache expired.

      Suggestions are welcomed. Thanks~

      Attachments

        1. 12943-1-master.txt
          4 kB
          Devaraj Das

        Activity

          People

            Unassigned Unassigned
            liushaohui Shaohui Liu
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: