Uploaded image for project: 'Apache Gora'
  1. Apache Gora
  2. GORA-89

Avoid HBase MiniCluster restarts to shorten gora-hbase tests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.2
    • 0.4
    • gora-hbase
    • 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.

      [1] http://svn.apache.org/repos/asf/james/mailbox/trunk/hbase/src/test/java/org/apache/james/mailbox/hbase/

      Attachments

        1. GORA-89-proposal_02.patch
          17 kB
          alfonso.nishikawa
        2. GORA-89-hsaputra.patch
          17 kB
          Henry Saputra
        3. GORA-89.patch
          7 kB
          Lewis John McGibbney

        Issue Links

          Activity

            People

              hsaputra Henry Saputra
              lewismc Lewis John McGibbney
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: