You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by Apache Wiki <wi...@apache.org> on 2010/06/06 05:07:20 UTC
[Hadoop Wiki] Update of "Hbase/HowToContribute" by JeffHammerbacher
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.
The "Hbase/HowToContribute" page has been changed by JeffHammerbacher.
http://wiki.apache.org/hadoop/Hbase/HowToContribute?action=diff&rev1=16&rev2=17
--------------------------------------------------
* By default, do not let tests write any temporary files to {{{/tmp}}}. Instead, the tests should write to the location specified by the {{{test.build.data}}} system property. The {{{org.apache.hadoop.hbase.HBaseTestingUtility}}} class has some utility methods to assist with this.
* If a HBase cluster is needed by your test, you should use the {{{org.apache.hadoop.hbase.HBaseTestingUtility}}} to start and stop the cluster. See the {{{org.apache.hadoop.hbase.client.TestAdmin}}} and {{{org.apache.hadoop.hbase.client.TestFromClientSide}}} classes as these are good examples of how the testing utilities can be used.
* Place your class in the {{{src/test}}} tree.
- * you can run all the unit test with the command {{{mvn test}}}, or you can run a specific unit test with the command {{{mvn test -Dtest=<ClassName>}}} (For example {{{mvn test -Dtest=TestHBaseCluster}}})
+ * You can run all the unit tests with the command {{{mvn test}}}, or you can run a specific unit test with the command {{{mvn test -Dtest=<ClassName>}}} (For example {{{mvn test -Dtest=TestHBaseCluster}}})
- * if you want to quickly build the code without running the tests you can run the command {{{mvn install -DskipTests}}}
+ * If you want to quickly build the code without running the tests you can run the command {{{mvn install -DskipTests}}}
+ * If your test requires a port, be sure to use an ephemeral port by requesting port 0 in your code and passing the assigned port to the client.
=== New to Hbase ===
For those contributors that are new to HBase, there is a label that is added to jira items that are appropriate for you. When finding issues, add a search criteria for the label "noob" to find all of these tasks. Furthermore, all contributors when logging jira items should consider whether the new issue could be assigned to a HBase noob and add the label appropriately.