Class TestForeignExceptionDispatcher

java.lang.Object
org.apache.hadoop.hbase.errorhandling.TestForeignExceptionDispatcher

@Tag("org.apache.hadoop.hbase.testclassification.MasterTests") @Tag("org.apache.hadoop.hbase.testclassification.SmallTests") public class TestForeignExceptionDispatcher extends Object
Test that we propagate errors through an dispatcher exactly once via different failure injection mechanisms.
  • Field Details

    • LOG

      private static final org.slf4j.Logger LOG
    • EXTEXN

      final org.apache.hadoop.hbase.errorhandling.ForeignException EXTEXN
      Exception thrown from the test
    • EXTEXN2

      final org.apache.hadoop.hbase.errorhandling.ForeignException EXTEXN2
  • Constructor Details

  • Method Details

    • testErrorPropagation

      @Test public void testErrorPropagation()
      Tests that a dispatcher only dispatches only the first exception, and does not propagate subsequent exceptions.
    • testSingleDispatcherWithTimer

      @Test public void testSingleDispatcherWithTimer()
    • testAttemptTimer

      @Test public void testAttemptTimer()
      Test that the dispatcher can receive an error via the timer mechanism.