Package alluxio.master.backcompat
Class BackwardsCompatibilityJournalGenerator
- java.lang.Object
-
- alluxio.master.backcompat.BackwardsCompatibilityJournalGenerator
-
public final class BackwardsCompatibilityJournalGenerator extends java.lang.ObjectGenerates journals for consumption by the BackwardsCompatibilityIntegrationTest. This class 1. starts a new cluster 2. runs all the test operations listed in OPS 3. takes a journal backup at stores it to src/test/resources/old_journals 4. stops the cluster 5. copies the journal to src/test/resources/old_journals Later, BackwardsCompatibilityIntegrationTest will start clusters from the backups and copies in old_journals, and validate that the operations' checks pass.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringOLD_JOURNALS_RESOURCEstatic java.util.List<TestOp>OPS
-
Constructor Summary
Constructors Constructor Description BackwardsCompatibilityJournalGenerator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetOutputDirectory()static voidmain(java.lang.String[] args)Generates journal files to be used by the backwards compatibility test.
-
-
-
Field Detail
-
OLD_JOURNALS_RESOURCE
public static final java.lang.String OLD_JOURNALS_RESOURCE
- See Also:
- Constant Field Values
-
OPS
public static final java.util.List<TestOp> OPS
-
-
Method Detail
-
getOutputDirectory
public java.lang.String getOutputDirectory()
- Returns:
- the output directory
-
main
public static void main(java.lang.String[] args) throws java.lang.ExceptionGenerates journal files to be used by the backwards compatibility test. The files are named based on the current version defined in ProjectConstants.VERSION. Run this with each release, and commit the created journal and snapshot into the git repository.- Parameters:
args- no args expected- Throws:
java.lang.Exception
-
-