Class EncryptionFaultInjector

java.lang.Object
org.apache.hadoop.hdfs.server.namenode.EncryptionFaultInjector

public class EncryptionFaultInjector extends Object
Used to inject certain faults for testing.
  • Field Details

  • Constructor Details

    • EncryptionFaultInjector

      public EncryptionFaultInjector()
  • Method Details

    • getInstance

      @VisibleForTesting public static EncryptionFaultInjector getInstance()
    • startFileNoKey

      @VisibleForTesting public void startFileNoKey() throws IOException
      Throws:
      IOException
    • startFileBeforeGenerateKey

      @VisibleForTesting public void startFileBeforeGenerateKey() throws IOException
      Throws:
      IOException
    • startFileAfterGenerateKey

      @VisibleForTesting public void startFileAfterGenerateKey() throws IOException
      Throws:
      IOException
    • reencryptEncryptedKeys

      @VisibleForTesting public void reencryptEncryptedKeys() throws IOException
      Throws:
      IOException
    • reencryptUpdaterProcessOneTask

      @VisibleForTesting public void reencryptUpdaterProcessOneTask() throws IOException
      Throws:
      IOException
    • reencryptUpdaterProcessCheckpoint

      @VisibleForTesting public void reencryptUpdaterProcessCheckpoint() throws IOException
      Throws:
      IOException
    • ensureKeyIsInitialized

      @VisibleForTesting public void ensureKeyIsInitialized() throws IOException
      Throws:
      IOException