Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-560

inefficient request handling in NIOServerCnxn

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: server
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      the server doIO code, specifically for read is inefficiently handling requests.

      dio does the following for reads

      if new request received: read length and return
      else read request body and return
      ....

      as a result we poll the selector twice for each request from a client.

      we should just read the request fully, reducing selector polling by half

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                phunt Patrick Hunt
                Reporter:
                phunt Patrick Hunt
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: