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

SecureClient#setupIOStreams should handle all Exceptions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.94.27
    • Fix Version/s: 0.94.28
    • Component/s: Client, security
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Similar to HBASE-9256 , SecureClient#setupIOStreams should also catch up all Exception. In our production environment, an OutOfMemoryError is thrown in SecureClient#setupIOStreams, leaving an unclosed SecureConnection with its inputStream/outputStream still null. Therefore, following calls will be attached to this connection and will encounter NPE in HBaseClient#sendParam:

      java.lang.NullPointerException
      at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.sendParam(HBaseClient.java:619)
      at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:977)
      at org.apache.hadoop.hbase.ipc.SecureRpcEngine$Invoker.invoke(SecureRpcEngine.java:107)
      at $Proxy21.replicateLogEntries(Unknown Source)
      at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.shipEdits(ReplicationSource.java:772)
      at org.apache.hadoop.hbase.replication.regionserver.ReplicationSource.run(ReplicationSource.java:451)
      

      We'd fix this in 0.94.

        Attachments

        1. HBASE-13454-0.94.patch
          0.8 kB
          Jianwei Cui

          Activity

            People

            • Assignee:
              cuijianwei Jianwei Cui
              Reporter:
              cuijianwei Jianwei Cui
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: