Commit Graph

3175 Commits

Author SHA1 Message Date
Michael Stack 9c67949638 HBASE-3104 Disable TestMultiClusters; it doesn't really test anything and HBaseTestingUtility needs more work for this to pass anyways
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1021860 13f79535-47bb-0310-9956-ffa450edef68
2010-10-12 17:55:11 +00:00
Michael Stack c32f663c07 Change test max run time from 3600 to 900 seconds, up memory for forked tests, also enable assertions
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1021796 13f79535-47bb-0310-9956-ffa450edef68
2010-10-12 15:18:16 +00:00
Michael Stack e695ef3cd0 More fixup for hbase merge tool -- test for master being offline
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1021791 13f79535-47bb-0310-9956-ffa450edef68
2010-10-12 15:06:15 +00:00
Michael Stack d405dbeca6 Add shutdown of clusters -- not shutting down was causing subsequent TestMergeTool to fail because there was running zk
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1021789 13f79535-47bb-0310-9956-ffa450edef68
2010-10-12 15:01:48 +00:00
Michael Stack fc32ccdb2b Better message on assertion failure (looking at logs, this test should have passed)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1021774 13f79535-47bb-0310-9956-ffa450edef68
2010-10-12 13:47:57 +00:00
Jean-Daniel Cryans 5ccf27683b HBASE-3060 [replication] Reenable replication on trunk with unit tests
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1021447 13f79535-47bb-0310-9956-ffa450edef68
2010-10-11 18:00:48 +00:00
Michael Stack 999cb8af7c If waiting on a balance, after each unsuccessful attempt, call balancer in case it hasn't been run (Fail on hudson of build #1532 looks to be a postponed balance and then wait on a balance that would never come
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1021385 13f79535-47bb-0310-9956-ffa450edef68
2010-10-11 15:30:58 +00:00
Michael Stack 50430b219c Remove mistaken import
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1021307 13f79535-47bb-0310-9956-ffa450edef68
2010-10-11 11:18:46 +00:00
Michael Stack fb3e4766d2 Logging to see if can figure why the TestTableInputFormatScan failures up on hudson
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1021237 13f79535-47bb-0310-9956-ffa450edef68
2010-10-11 03:38:26 +00:00
Michael Stack c80154014b Temporarily changing rpc version back to 25... TestTableMapReduce is failing because client is 26 but master is version 25?
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1021236 13f79535-47bb-0310-9956-ffa450edef68
2010-10-11 03:37:35 +00:00
Michael Stack 83782f16d6 Note some resolved issues
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1006350 13f79535-47bb-0310-9956-ffa450edef68
2010-10-10 21:00:49 +00:00
Michael Stack d3f3ccee7a Fix NPE in TestCatalogTracker up on hudson; removed toString on HConnection
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1006344 13f79535-47bb-0310-9956-ffa450edef68
2010-10-10 19:36:31 +00:00
Michael Stack 9d3bb109db HBASE-3098 TestMetaReaderEditor is broken in TRUNK; hangs; Add cleanup of old tests dir to HBaseClusterTestCase -- we are reading old zk data on occasion
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1006253 13f79535-47bb-0310-9956-ffa450edef68
2010-10-10 06:48:48 +00:00
Michael Stack 924f28e5c3 HBASE-3098 TestMetaReaderEditor is broken in TRUNK; hangs; part2 of the patch
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1006252 13f79535-47bb-0310-9956-ffa450edef68
2010-10-10 06:04:59 +00:00
Michael Stack 52bbd22187 HBASE-3100 TestMergeTable failing in TRUNK
M src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
  Some fixup to support stepped start up of mini cluster; allow
  starting dfs cluster, then later put an hbase mini cluster on top.
  (startMiniHBaseCluster, createRootDir): Added. 
D src/test/java/org/apache/hadoop/hbase/AbstractMergeTestBase.java
  Removed messy subclass of HBaseClusterTestCase used building
  up some specific loaded regions.  Replaced with utility added
  to HBaseTestingUtility and by methods added to specific test.
D src/test/java/org/apache/hadoop/hbase/util/TestMergeMeta.java
  Deleted test that did nothing -- test merging of .META. -- but
  the superclass was making user regions, not multiple instances
  of .META. -- which we don't support anyways currently.
M src/test/java/org/apache/hadoop/hbase/util/TestMergeTable.java
  Rewritten to use HBaseTestingUtility.  Also added assertions that
  it actually did successful merge (Were none previous).
M src/main/java/org/apache/hadoop/hbase/catalog/CatalogTracker.java
  Added a new constructor.  Are the others redundant given I just
  added implementation of Abortable to HConnection interface (the
  implmementation of HConnection used implement it -- I've just
  moved it up into the Interface itself).
M src/main/java/org/apache/hadoop/hbase/util/HMerge.java
  Bit of minor cleanup refactoring.
M src/main/java/org/apache/hadoop/hbase/client/HConnectionManager.java
  The HConnection Interface now implements Abortable.
M src/main/java/org/apache/hadoop/hbase/client/HConnection.java
  Extend Abortable (The implementation was implementing Abortable
  anyways).


git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1006219 13f79535-47bb-0310-9956-ffa450edef68
2010-10-09 19:23:36 +00:00
Michael Stack 71d6b124dd HBASE-3062 ZooKeeper KeeperException is a recoverable exception; we should retry a while on server startup at least.
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1006202 13f79535-47bb-0310-9956-ffa450edef68
2010-10-09 17:55:33 +00:00
Michael Stack b7f3cfbf05 HBASE-3098 TestMetaReaderEditor is broken in TRUNK; hangs
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1006107 13f79535-47bb-0310-9956-ffa450edef68
2010-10-09 03:46:52 +00:00
Michael Stack 9b166c9e33 HBASE-3089 REST tests are broken locally and up in hudson; some minor changes that should have been included on last commit
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1006065 13f79535-47bb-0310-9956-ffa450edef68
2010-10-08 22:50:40 +00:00
Michael Stack d46e5634a3 HBASE-3094 Fixes for miscellaneous broken tests
M src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
  Added passing a Configuration to createTable.
M src/test/java/org/apache/hadoop/hbase/HBaseClusterTestCase.java
  Make a new configuration each time we create a cluster else this
  old testing utility fails when we do restart in middle of a test
  suite using this old stuff.
M src/test/java/org/apache/hadoop/hbase/regionserver/TestHRegion.java
  Fixed imports.
M src/test/java/org/apache/hadoop/hbase/MiniHBaseCluster.java
  Added catch for other than IOE... shutdown if anything thrown.
M src/test/java/org/apache/hadoop/hbase/master/TestCatalogJanitor.java
  This test was for sure horked.  Fixed it so we were testing
  the javadoc description of how its supposed to work.
M src/test/java/org/apache/hadoop/hbase/master/TestDeadServer.java
  Another test that just wasn't working -- couldn't have worked on
  commit.
M src/test/java/org/apache/hadoop/hbase/master/TestLoadBalancer.java
  Must have resolvable host (How did this test ever work)?
M src/test/java/org/apache/hadoop/hbase/client/TestGetRowVersions.java
   Fixup to make this test pass.  New Configuration after cluster restart.
M src/test/java/org/apache/hadoop/hbase/client/TestScannerTimeout.java
  Fixup to make this test pass.  The low scanner timeout was stopping
  this test from even starting up.
M src/test/java/org/apache/hadoop/hbase/client/TestFromClientSide.java
  Use new method from HTU.
M src/main/java/org/apache/hadoop/hbase/regionserver/SplitTransaction.java
  If passed server is null, we are in test mode.
M src/main/java/org/apache/hadoop/hbase/catalog/CatalogTracker.java
  Catch other dropped connection exception types when trying to prove
  we have a good root/meta address.


git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1005990 13f79535-47bb-0310-9956-ffa450edef68
2010-10-08 19:45:11 +00:00
Michael Stack 449fd9aa94 HBASE-3092 Replace deprecated 'new HBaseConfiguration(...)' calls
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1005936 13f79535-47bb-0310-9956-ffa450edef68
2010-10-08 18:03:03 +00:00
Michael Stack 50b3582e33 HBASE-3074 Zookeeper test failing on hudson; forgot this change
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1005715 13f79535-47bb-0310-9956-ffa450edef68
2010-10-08 06:06:17 +00:00
Michael Stack ff2d19229f 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.


git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1005714 13f79535-47bb-0310-9956-ffa450edef68
2010-10-08 06:04:35 +00:00
Michael Stack d65d011907 HBASE-3091 Fix TestKillingServersFromMaster in TRUNK; it just hangs since new master went in
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1005713 13f79535-47bb-0310-9956-ffa450edef68
2010-10-08 05:49:01 +00:00
Michael Stack c4d59d99dd HBASE-3074 Zookeeper test failing on hudson
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1005691 13f79535-47bb-0310-9956-ffa450edef68
2010-10-08 01:13:55 +00:00
Michael Stack 8570a6af09 HBASE-3089 REST tests are broken locally and up in hudson
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1005660 13f79535-47bb-0310-9956-ffa450edef68
2010-10-07 22:54:28 +00:00
Michael Stack 58423039df HBASE-3088 TestAvroServer and TestThriftServer broken because use same table in all tests and tests enable/disable/delete
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1005552 13f79535-47bb-0310-9956-ffa450edef68
2010-10-07 18:13:04 +00:00
Andrew Kyle Purtell a6afa7b49f HBASE-2907 [rest/stargate] Improve error response when trying to create a scanner on a nonexistant table
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1005279 13f79535-47bb-0310-9956-ffa450edef68
2010-10-06 22:28:58 +00:00
Jonathan Gray b2bff276ab HBASE-3053 Add ability to have multiple Masters LocalHBaseCluster for test writing
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1005263 13f79535-47bb-0310-9956-ffa450edef68
2010-10-06 21:39:11 +00:00
Ryan Rawson 1e14da3d78 HBASE-3008 Memstore.updateColumnValue passes wrong flag to heapSizeChange (Causes memstore size to go negative)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1005261 13f79535-47bb-0310-9956-ffa450edef68
2010-10-06 21:27:16 +00:00
Michael Stack 3745672d94 Yet more debug for baffling zk test failure up on hudson
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1005238 13f79535-47bb-0310-9956-ffa450edef68
2010-10-06 20:32:30 +00:00
Andrew Kyle Purtell 38641ec196 HBASE-2906 [rest/stargate] URI decoding in RowResource
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1005175 13f79535-47bb-0310-9956-ffa450edef68
2010-10-06 17:21:32 +00:00
Ryan Rawson de39f4328d HBASE-3073 Build fix
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1004890 13f79535-47bb-0310-9956-ffa450edef68
2010-10-06 04:00:33 +00:00
Ryan Rawson 723b6709fa HBASE-3059 TestReadWriteConsistencyControl occasionally hangs (Hairong via Ryan)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1004867 13f79535-47bb-0310-9956-ffa450edef68
2010-10-06 00:59:07 +00:00
Ryan Rawson 1ef046250f HBASE-3073 New APIs for Result, faster implementation for some calls
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1004866 13f79535-47bb-0310-9956-ffa450edef68
2010-10-06 00:44:21 +00:00
Michael Stack 66a4faa7b0 HBASE-3085 TestSchemaResource broken on TRUNK up on HUDSON
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1004860 13f79535-47bb-0310-9956-ffa450edef68
2010-10-06 00:02:22 +00:00
Jean-Daniel Cryans 24a3e3e5ef Updating site for 0.89.20100924
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1004769 13f79535-47bb-0310-9956-ffa450edef68
2010-10-05 19:07:27 +00:00
Michael Stack fc72345b47 Only assign if table is enabled -- fixes TestHFileOutputFormat
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1004699 13f79535-47bb-0310-9956-ffa450edef68
2010-10-05 16:25:01 +00:00
Michael Stack 83470f981a HBASE-3080 TestAdmin hanging on hudson
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1004525 13f79535-47bb-0310-9956-ffa450edef68
2010-10-05 05:03:22 +00:00
Michael Stack a246cbbd6c Adding even more logging to figure why we're reading old root region location though its been updated in zk -- for failing TestZooKeeper
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1004479 13f79535-47bb-0310-9956-ffa450edef68
2010-10-04 23:03:21 +00:00
Michael Stack f363062641 Add wait on disable to complete to TestHFileOutputFormat by watching regions in transition...; seems to fix unit test
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1004474 13f79535-47bb-0310-9956-ffa450edef68
2010-10-04 23:01:16 +00:00
Michael Stack 77dc443fc1 Adding even more logging to figure why we're reading old root region location though its been updated in zk -- for failing TestZooKeeper
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1004464 13f79535-47bb-0310-9956-ffa450edef68
2010-10-04 22:39:33 +00:00
Michael Stack 83802d7f17 Adding even more logging to figure why we're reading old root region location though its been updated in zk -- for failing TestZooKeeper
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1004462 13f79535-47bb-0310-9956-ffa450edef68
2010-10-04 22:27:40 +00:00
Michael Stack ea1268b468 HBASE-2646 Compaction requests should be prioritized to prevent blocking; applied addendum 2464-fix-race-condition-r1004349.txt
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1004371 13f79535-47bb-0310-9956-ffa450edef68
2010-10-04 19:25:42 +00:00
Michael Stack 18d7fff188 HBASE-3043 'hbase-daemon.sh stop regionserver' should kill compactions that are in progress
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1004340 13f79535-47bb-0310-9956-ffa450edef68
2010-10-04 17:59:38 +00:00
Michael Stack 70ced466fc HBASE-2917 Reseek directly to next row
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1004339 13f79535-47bb-0310-9956-ffa450edef68
2010-10-04 17:59:22 +00:00
Michael Stack 5fe98f1184 HBASE-3043 'hbase-daemon.sh stop regionserver' should kill compactions that are in progress
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1004336 13f79535-47bb-0310-9956-ffa450edef68
2010-10-04 17:53:53 +00:00
Michael Stack 03873bbe19 HBASE-2996 Fix and clean up Maven
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1004093 13f79535-47bb-0310-9956-ffa450edef68
2010-10-04 03:19:26 +00:00
Michael Stack fdecc9dd9b Commit extra logging to help diagnoze zk test failure on hudson
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1004019 13f79535-47bb-0310-9956-ffa450edef68
2010-10-03 18:13:53 +00:00
Michael Stack b70e4b83c1 HBASE-3063 TestThriftServer failing in TRUNK; trying this patch to see if it helps
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1003921 13f79535-47bb-0310-9956-ffa450edef68
2010-10-03 05:06:06 +00:00
Michael Stack 8ff999cf9a HBASE-3074 Zookeeper test failing on hudson; xtra debugging to help figure whats happening up on hudson
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1003919 13f79535-47bb-0310-9956-ffa450edef68
2010-10-02 23:48:00 +00:00