JournalFaultInjector (Apache Hadoop HDFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.qjournal.server, class: JournalFaultInjector

Package org.apache.hadoop.hdfs.qjournal.server

# Class JournalFaultInjector

java.lang.Object
org.apache.hadoop.hdfs.qjournal.server.JournalFaultInjector

@VisibleForTesting @Private public class JournalFaultInjector extends Object
Used for injecting faults in QuorumJournalManager tests. Calls into this are a no-op in production code.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static JournalFaultInjector`
  `instance`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `JournalFaultInjector()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `afterPersistPaxosData()`
  `void`
  `beforePersistPaxosData()`
  `static JournalFaultInjector`
  `get()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### instance

    public static JournalFaultInjector instance

- ## Constructor Details

  - ### JournalFaultInjector

    public JournalFaultInjector()

- ## Method Details

  - ### get

    public static JournalFaultInjector get()

  - ### beforePersistPaxosData

    public void beforePersistPaxosData() throws IOException
    Throws:
      `IOException`

  - ### afterPersistPaxosData

    public void afterPersistPaxosData() throws IOException
    Throws:
      `IOException`