/[Apache-SVN]
ViewVC logotype

Revision 1005714


Jump to revision: Previous Next
Author: stack
Date: Fri Oct 8 06:04:35 2010 UTC (14 years ago)
Changed paths: 7
Log Message:
HBASE-3074 Zookeeper test failing on hudson

HConnections go stale if miniCluster is shutdown on them.  Make it
so we make new HConnections on other side of a new cluster spin up.
Was cause for failing of last few tests.

M src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
  So if you shutdown a cluster and you have HConnections that were
  made using the HTUs Configuration, they'll all be stale --
  session expired -- and won't be of any use connecting to new cluster
  that comes up... now that HConnection is first class dependent on
  its own ZooKeeperWatcher instance.
  So, I went through this class and fixed it up so we use new
  Configurations when could be called either side of a mini cluster
  restart.  Added note to getConfiguration to be careful what you
  do with it because Configuration makes for an HConnection.
M src/test/java/org/apache/hadoop/hbase/TestZooKeeper.java
  Don't use same Configuration everywhere.
M src/test/java/org/apache/hadoop/hbase/master/TestRestartCluster.java
  Make new Configuration when we make new Cluster so we get fresh
  HConnection -- not one w/ stale data, disconnected.
M src/main/java/org/apache/hadoop/hbase/master/ServerManager.java
  Check that new server that comes in on a regionServerReport
  doesn't have same port and host as one we have already registered
  as we do in reportForDuty call (This is preemtive bug fix).
M src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java
  Save of an identifier for HCM and use it in log messages, particularly
  when we close -- helps debugging.
M src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java
  getConfiguration added.


Changed paths

Path Details
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java modified , text changed
Directoryhbase/trunk/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java modified , text changed
Directoryhbase/trunk/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java modified , text changed
Directoryhbase/trunk/src/test/java/org/apache/hadoop/hbase/TestZooKeeper.java modified , text changed
Directoryhbase/trunk/src/test/java/org/apache/hadoop/hbase/catalog/TestMetaReaderEditor.java modified , text changed
Directoryhbase/trunk/src/test/java/org/apache/hadoop/hbase/master/TestRestartCluster.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26