Package org.apache.hadoop.hbase.client
Class TestProcedureFuture
java.lang.Object
org.apache.hadoop.hbase.client.TestProcedureFuture
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
When a new client with procedure support tries to ask an old-master without proc-support the procedure result we get a DoNotRetryIOException (which is an UnsupportedOperationException) The future should trap that and fallback to the waitOperationResult().void
When a master return a result without procId, we are skipping the getProcedureResult() call.void
When a master return a result with procId, we are skipping the waitOperationResult() call, since we are getting the procedure result.void
Verify that the spin loop for the procedure running works.
-
Field Details
-
CLASS_RULE
-
-
Constructor Details
-
TestProcedureFuture
public TestProcedureFuture()
-
-
Method Details
-
testWithProcId
When a master return a result with procId, we are skipping the waitOperationResult() call, since we are getting the procedure result.- Throws:
Exception
-
testWithProcIdAndSpinning
Verify that the spin loop for the procedure running works.- Throws:
Exception
-
testWithoutProcId
When a master return a result without procId, we are skipping the getProcedureResult() call.- Throws:
Exception
-
testOnServerWithNoProcedureSupport
When a new client with procedure support tries to ask an old-master without proc-support the procedure result we get a DoNotRetryIOException (which is an UnsupportedOperationException) The future should trap that and fallback to the waitOperationResult(). This happens when the operation calls happens on a "new master" but while we are waiting the operation to be completed, we failover on an "old master".- Throws:
Exception
-