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

HBaseClient#call could hang

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment