Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-5758

Speed up TestKeyInputStream and TestChunkInputStream by combining some tests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.2.0
    • test

    Description

      TestKeyInputStream takes over 900 seconds to run:

      [INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 964.773 s - in org.apache.hadoop.ozone.client.rpc.read.TestKeyInputStream
      [INFO] Running org.apache.hadoop.ozone.client.rpc.Test2WayCommitInRatis

      TestChunkInputStream also takes about:

      [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 292.226 s - in org.apache.hadoop.ozone.client.rpc.read.TestChunkInputStream
      [INFO] Running org.apache.hadoop.ozone.client.rpc.read.TestKeyInputStream

      Some of the tests stop and start nodes in the mini-cluster, so its hard to use the same cluster for all tests, but we can combine the "non-destructive" tests into a single test method in each of these class easily saving significant time.

      Also in TestInputStreamBase there is a single test, which is executed by both the extending classes, needless repeating it. I have moved in up into one of the extending classes instead.

      Attachments

        Issue Links

          Activity

            People

              sodonnell Stephen O'Donnell
              sodonnell Stephen O'Donnell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: