Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-933 Enhance Local index support
  3. PHOENIX-1099

Fix performance issues with unit tests.

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.1.0
    • None

    Description

      After commit 247ac8eee8ca604ca1616ba4bcf91fec6475ea88, the unit test suite run by mvn test started taking a very long time to run.

      Prior to that commit, running the unit test suite would take around 15-20 seconds. After that commit and for every commit afterwards the unit tests appear to hang at the last test and take 1:45-2:00 to complete.

      Addendum: looks like the culprit is org.apache.phoenix.hbase.index.balancer.TestIndexLoadBalancer. This class is run with the unit tests but it spins up and shuts down an HBase mini-cluster. Commenting out the body of the class fixes the performance issue. Seems like this should be an Integration Test, not a Unit Test. Was that the intention?

      Attachments

        1. PHOENIX-1099.patch
          48 kB
          Kyle Buzsaki

        Activity

          People

            kbuzsaki Kyle Buzsaki
            kbuzsaki Kyle Buzsaki
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: