You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2010/11/03 23:45:59 UTC
svn commit: r1030745 - in /hbase/trunk: pom.xml
src/main/java/org/apache/hadoop/hbase/client/HTable.java
Author: stack
Date: Wed Nov 3 22:45:59 2010
New Revision: 1030745
URL: http://svn.apache.org/viewvc?rev=1030745&view=rev
Log:
HBASE-2828 HTable unnecessarily coupled with HMaster -- Added comment that we do not want dependency on Master
Modified:
hbase/trunk/pom.xml
hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HTable.java
Modified: hbase/trunk/pom.xml
URL: http://svn.apache.org/viewvc/hbase/trunk/pom.xml?rev=1030745&r1=1030744&r2=1030745&view=diff
==============================================================================
--- hbase/trunk/pom.xml (original)
+++ hbase/trunk/pom.xml Wed Nov 3 22:45:59 2010
@@ -261,6 +261,7 @@
<execution>
<goals>
<goal>generate-html</goal>
+ <goal>generate-pdf</goal>
</goals>
<phase>pre-site</phase>
</execution>
Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HTable.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HTable.java?rev=1030745&r1=1030744&r2=1030745&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HTable.java (original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HTable.java Wed Nov 3 22:45:59 2010
@@ -197,13 +197,13 @@ public class HTable implements HTableInt
}
/**
- * TODO Might want to change this to public, would be nice if the number
- * of threads would automatically change when servers were added and removed
* @return the number of region servers that are currently running
* @throws IOException if a remote or network exception occurs
*/
- int getCurrentNrHRS() throws IOException {
+ public int getCurrentNrHRS() throws IOException {
try {
+ // We go to zk rather than to master to get count of regions to avoid
+ // HTable having a Master dependency. See HBase-2828
return ZKUtil.getNumberOfChildren(this.connection.getZooKeeperWatcher(),
this.connection.getZooKeeperWatcher().rsZNode);
} catch (KeeperException ke) {