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

HBaseClient#call could hang

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.94.10
    • 0.94.11
    • Client
    • None
    • Reviewed

    Description

      In HBaseClient#call, we have

          connection.sendParam(call);                 // send the parameter
          boolean interrupted = false;
          //noinspection SynchronizationOnLocalVariableOrMethodParameter
          synchronized (call) {
            while (!call.done) {
              try {
                call.wait();                           // wait for the result
      

      sendParam could do nothing if the connection is closed right after the call is added into the queue. Since the connection is closed, we won't get any response, therefore, we won't get any notify call. So we will keep waiting here for something won't happen.

      Attachments

        1. 0.94-9050.patch
          0.9 kB
          Jimmy Xiang

        Activity

          People

            jxiang Jimmy Xiang
            jxiang Jimmy Xiang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: