Package org.apache.hadoop.hdfs.TestAvatarCheckpointing

Examples of org.apache.hadoop.hdfs.TestAvatarCheckpointing.TestAvatarCheckpointingHandler


  }
 
  @Test
  public void testQuiescingImageValidationCreation() throws Exception {
    // test if creation of new validation fails after standby quiesce
    TestAvatarCheckpointingHandler h = TestAvatarCheckpointing
        .testQuiesceInterruption(InjectionEvent.STANDBY_VALIDATE_CREATE, false,
            false, true);
    assertTrue(h.receivedEvents
        .contains(InjectionEvent.STANDBY_VALIDATE_CREATE_FAIL));
  }
View Full Code Here


  }
 
  @Test
  public void testQuiescingImageUpload() throws Exception {
    // test if the image upload is interrupted when quiescing standby
    TestAvatarCheckpointingHandler h = TestAvatarCheckpointing
        .testQuiesceInterruption(InjectionEvent.STANDBY_UPLOAD_CREATE,
            InjectionEvent.STANDBY_QUIESCE_INTERRUPT, false, false, false, true);
    assertTrue(h.receivedEvents.contains(InjectionEvent.STANDBY_UPLOAD_FAIL));
  }
View Full Code Here

  }
 
  @Test
  public void testQuiescingImageValidationInterruption() throws Exception {
    // test if an ongoing image validation is interrupted
    TestAvatarCheckpointingHandler h = TestAvatarCheckpointing
        .testQuiesceInterruption(InjectionEvent.IMAGE_LOADER_CURRENT_START,
            InjectionEvent.STANDBY_QUIESCE_INTERRUPT, false, false, false, true);
    assertTrue(h.receivedEvents
        .contains(InjectionEvent.IMAGE_LOADER_CURRENT_INTERRUPT));
  }
View Full Code Here

  }
 
  @Test
  public void testQuiescingImageValidationCreation() throws Exception {
    // test if creation of new validation fails after standby quiesce
    TestAvatarCheckpointingHandler h = TestAvatarCheckpointing
        .testQuiesceInterruption(InjectionEvent.STANDBY_VALIDATE_CREATE, false,
            false, false);
    assertTrue(h.receivedEvents
        .contains(InjectionEvent.STANDBY_VALIDATE_CREATE_FAIL));
  }
View Full Code Here

  }

  @Test
  public void testQuiescingImageUpload() throws Exception {
    // test if the image upload is interrupted when quiescing standby
    TestAvatarCheckpointingHandler h = TestAvatarCheckpointing
        .testQuiesceInterruption(InjectionEvent.STANDBY_UPLOAD_CREATE,
            InjectionEvent.STANDBY_QUIESCE_INTERRUPT, false, false, false, false);
    assertTrue(h.receivedEvents.contains(InjectionEvent.STANDBY_UPLOAD_FAIL));
  }
View Full Code Here

  }

  @Test
  public void testQuiescingImageValidationInterruption() throws Exception {
    // test if an ongoing image validation is interrupted
    TestAvatarCheckpointingHandler h = TestAvatarCheckpointing
        .testQuiesceInterruption(InjectionEvent.IMAGE_LOADER_CURRENT_START,
            InjectionEvent.STANDBY_QUIESCE_INTERRUPT, false, false, false, false);
    assertTrue(h.receivedEvents
        .contains(InjectionEvent.IMAGE_LOADER_CURRENT_INTERRUPT));
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.TestAvatarCheckpointing.TestAvatarCheckpointingHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.