Class TestEntityLocks

java.lang.Object
org.apache.hadoop.hbase.client.locking.TestEntityLocks

public class TestEntityLocks extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private org.apache.hadoop.hbase.client.locking.LockServiceClient
     
    static final HBaseClassTestRule
     
    private final org.apache.hadoop.conf.Configuration
     
    private static final org.apache.hadoop.hbase.shaded.protobuf.generated.LockServiceProtos.LockHeartbeatResponse
     
    private org.mockito.ArgumentCaptor<org.apache.hadoop.hbase.shaded.protobuf.generated.LockServiceProtos.LockHeartbeatRequest>
     
    private org.mockito.ArgumentCaptor<org.apache.hadoop.hbase.shaded.protobuf.generated.LockServiceProtos.LockRequest>
     
    private static final org.slf4j.Logger
     
    private final org.apache.hadoop.hbase.shaded.protobuf.generated.LockServiceProtos.LockService.BlockingInterface
     
    private long
     
    private static final org.apache.hadoop.hbase.shaded.protobuf.generated.LockServiceProtos.LockHeartbeatResponse
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) org.apache.hadoop.hbase.client.locking.LockServiceClient
     
    void
     
    void
    Test basic lock function - requestLock, await, unlock.
    void
    Test that abort is called when lock times out.
    void
    Test that abort is called when lockHeartbeat fails with IOException.
    private boolean
    waitLockTimeOut(org.apache.hadoop.hbase.client.locking.EntityLock lock, long maxWaitTimeMillis)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CLASS_RULE

      public static final HBaseClassTestRule CLASS_RULE
    • LOG

      private static final org.slf4j.Logger LOG
    • conf

      private final org.apache.hadoop.conf.Configuration conf
    • master

      private final org.apache.hadoop.hbase.shaded.protobuf.generated.LockServiceProtos.LockService.BlockingInterface master
    • admin

      private org.apache.hadoop.hbase.client.locking.LockServiceClient admin
    • lockReqArgCaptor

      private org.mockito.ArgumentCaptor<org.apache.hadoop.hbase.shaded.protobuf.generated.LockServiceProtos.LockRequest> lockReqArgCaptor
    • lockHeartbeatReqArgCaptor

      private org.mockito.ArgumentCaptor<org.apache.hadoop.hbase.shaded.protobuf.generated.LockServiceProtos.LockHeartbeatRequest> lockHeartbeatReqArgCaptor
    • UNLOCKED_RESPONSE

      private static final org.apache.hadoop.hbase.shaded.protobuf.generated.LockServiceProtos.LockHeartbeatResponse UNLOCKED_RESPONSE
    • LOCKED_RESPONSE

      private static final org.apache.hadoop.hbase.shaded.protobuf.generated.LockServiceProtos.LockHeartbeatResponse LOCKED_RESPONSE
    • procId

      private long procId
  • Constructor Details

  • Method Details