Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
None
-
None
-
None
-
None
Description
Setting up and tearing down HBaseTestingUtility instances in unit tests is very expensive. On my MacBook it takes about 10 seconds to set up a MiniCluster, and 7 seconds to tear it down. When multiplied by the number of test classes that use this facility, that's a lot of time in the build.
This factory assumes that the JVM is being re-used across test classes in the build, otherwise this pattern won't work.
I don't think this is appropriate for every use, but I think it can be applicable in a great many cases - especially where developers just want a simple MiniCluster with 1 slave.
Attachments
Attachments
Issue Links
- is depended upon by
-
GORA-89 Avoid HBase MiniCluster restarts to shorten gora-hbase tests
- Closed
- is related to
-
HBASE-4602 Make the suite run in at least half the time
- Closed