You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Jimmy Xiang (JIRA)" <ji...@apache.org> on 2013/07/26 23:53:48 UTC

[jira] [Created] (HBASE-9050) HBaseClient#call could hang

Jimmy Xiang created HBASE-9050:
----------------------------------

             Summary: HBaseClient#call could hang
                 Key: HBASE-9050
                 URL: https://issues.apache.org/jira/browse/HBASE-9050
             Project: HBase
          Issue Type: Bug
          Components: Client
    Affects Versions: 0.94.10
            Reporter: Jimmy Xiang
            Assignee: Jimmy Xiang
            Priority: Minor


In HBaseClient#call, we have

{code}
    connection.sendParam(call);                 // send the parameter
    boolean interrupted = false;
    //noinspection SynchronizationOnLocalVariableOrMethodParameter
    synchronized (call) {
      while (!call.done) {
        try {
          call.wait();                           // wait for the result
{code}
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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira