Class AbstractTestCIOperationTimeout

java.lang.Object
org.apache.hadoop.hbase.client.AbstractTestCITimeout
org.apache.hadoop.hbase.client.AbstractTestCIOperationTimeout
Direct Known Subclasses:
TestCIDeleteOperationTimeout, TestCIGetOperationTimeout, TestCIPutOperationTimeout

Based class for testing operation timeout logic for ConnectionImplementation.
  • Field Details

    • LOG

      private static final org.slf4j.Logger LOG
    • tableName

      private org.apache.hadoop.hbase.TableName tableName
  • Constructor Details

  • Method Details

    • setUp

      public void setUp() throws IOException
      Throws:
      IOException
    • execute

      protected abstract void execute(org.apache.hadoop.hbase.client.Table table) throws IOException
      Throws:
      IOException
    • testOperationTimeout

      public void testOperationTimeout() throws IOException
      Test that an operation can fail if we read the global operation timeout, even if the individual timeout is fine. We do that with:
      • client side: an operation timeout of 30 seconds
      • server side: we sleep 20 second at each attempt. The first work fails, the second one succeeds. But the client won't wait that much, because 20 + 20 > 30, so the client timed out when the server answers.
      Throws:
      IOException