Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15130

SocketIOWithTimeout async close idle selector

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • common
    • None

    Description

      I start 1000 thread for NM and 1000 thread for AM in fairscheduler pressure test, using Scheduler Load Simulator(SLS) tool.
      In jstack log, I found SocketIOWithTimeout remove idle selectors after every select Operation.
      That will block 1000+ threads when doing iterator .

              for(Iterator<SelectorInfo> it = pList.queue.iterator(); it.hasNext();) {
                SelectorInfo info = it.next();
                if (info.lastActivityTime > cutoff) {
                  break;
                }
                it.remove();
                info.close();
              }
      

      Attachments

        1. HADOOP-15130.patch
          2 kB
          zhangshilong

        Activity

          People

            Unassigned Unassigned
            zsl2007 zhangshilong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: