Details
-
Improvement
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
0.2
-
None
Description
Currently our hbase tests are taking forever and a day. We should shorten the time by avoiding MiniCluster restarts.
Just implement the cluster as a singleton and clean up the tables in
between test by doing a scan and deletes for all rows. It's much
faster than restarting the cluster.
For code referenece please see the implementation here[1]. The class is
HBaseClusterSingleton. It needs some refactoring but I think it's
enough to speed your tests.
Thanks Ioan for the heads up.
Attachments
Attachments
Issue Links
- depends upon
-
HBASE-4448 HBaseTestingUtilityFactory - pattern for re-using HBaseTestingUtility instances across unit tests
- Closed
- incorporates
-
GORA-159 gora-hbase MR tests should use HBaseTestingUtility instead of deprecated HBaseClusterTestCase
- Closed