Class BackwardsCompatibilityJournalGenerator


  • public final class BackwardsCompatibilityJournalGenerator
    extends java.lang.Object
    Generates 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 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
    • Constructor Detail

      • BackwardsCompatibilityJournalGenerator

        public BackwardsCompatibilityJournalGenerator()
    • Method Detail

      • getOutputDirectory

        public java.lang.String getOutputDirectory()
        Returns:
        the output directory
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Generates 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