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

RS should abort if OOM in Reader thread

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.4.8
    • 1.3.3, 1.4.9, 1.2.9
    • regionserver
    • None

    Description

      It is a bit strange, we will abort the RS if OOM in Listener thread, Responder thread and in CallRunner thread, only not in Reader thread...
      We should abort RS if OOM happens in Reader thread, too. If not, the reader thread exists because of OOM, and the selector closes. Later connection select to this reader will be ignored

      try {
                    if (key.isValid()) {
                      if (key.isAcceptable())
                        doAccept(key);
                    }
                  } catch (IOException ignored) {
                    if (LOG.isTraceEnabled()) LOG.trace("ignored", ignored);
                  }
      

      Leaving the client (or Master and other RS)'s call wait until SocketTimeout.

      Attachments

        1. HBASE-21357.branch-1.001.patch
          1 kB
          Michael Stack
        2. HBASE-21357.branch-1.001.patch
          1 kB
          Allan Yang

        Activity

          People

            allan163 Allan Yang
            allan163 Allan Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: