Repository: hbase Updated Branches: refs/heads/master 8261d8429 -> e05341d01
HBASE-12728 buffered writes substantially less useful after removal of HTablePool (addendum for failing test in branch-1.0) Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/e05341d0 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/e05341d0 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/e05341d0 Branch: refs/heads/master Commit: e05341d01d3d1a5bac08359babfdd9cfad05052e Parents: 8261d84 Author: Enis Soztutar <[email protected]> Authored: Sat Jan 24 17:57:04 2015 -0800 Committer: Enis Soztutar <[email protected]> Committed: Sat Jan 24 17:57:04 2015 -0800 ---------------------------------------------------------------------- .../hadoop/hbase/regionserver/TestFSErrorsExposed.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/e05341d0/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestFSErrorsExposed.java ---------------------------------------------------------------------- diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestFSErrorsExposed.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestFSErrorsExposed.java index b1c3692..0d3fa13 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestFSErrorsExposed.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestFSErrorsExposed.java @@ -183,9 +183,8 @@ public class TestFSErrorsExposed { Assume.assumeTrue(!util.isReadShortCircuitOn()); try { - // We set it not to run or it will trigger server shutdown while sync'ing - // because all the datanodes are bad - util.getConfiguration().setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 3); + // Make it fail faster. + util.getConfiguration().setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 1); util.startMiniCluster(1); TableName tableName = TableName.valueOf("table"); @@ -198,8 +197,7 @@ public class TestFSErrorsExposed { .setBlockCacheEnabled(false) ); admin.createTable(desc); - // Make it fail faster. - util.getConfiguration().setInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, 1); + // Make a new Configuration so it makes a new connection that has the // above configuration on it; else we use the old one w/ 10 as default. try (Table table = util.getConnection().getTable(tableName)) { @@ -266,6 +264,7 @@ public class TestFSErrorsExposed { faultsStarted = true; } + @Override public int read(long position, byte[] buffer, int offset, int length) throws IOException { injectFault();
