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

Client caught in an infinite loop when trying to connect to cached server locations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.2.0
    • Client, IPC/RPC
    • None

    Description

      HbaseRPC, which (to my understanding) is used whenever there is a need to connect to a server, enters an infinite loop to continually retry the connection until it succeeds. This makes sense for server-to-server interaction, but it doesn't necessarily make sense for all client-to-server interaction.

      The problem I first observed was in doing fast restarts of HBase. When I attempted to reload the UI after a restart, it would infinitely try to re-contact the cached server location from before the restart. The correct behavior would be to break out of the loop as soon as possible in situations like the one above. I think that throwing a RetriesExhaustedException would be the best way to do this, although if anyone has any suggestions please let me know.

      Attachments

        1. hbase-727_logfile_sample.txt
          29 kB
          Izaak Rubin
        2. hbase_727.patch
          4 kB
          Izaak Rubin

        Activity

          People

            irubin Izaak Rubin
            irubin Izaak Rubin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: