From e180f0bdd1534910a20da0b02894249537628a7a Mon Sep 17 00:00:00 2001 From: Enis Soztutar Date: Sat, 24 Jan 2015 17:57:04 -0800 Subject: [PATCH] HBASE-12728 buffered writes substantially less useful after removal of HTablePool (addendum for failing test in branch-1.0) --- .../hadoop/hbase/regionserver/TestFSErrorsExposed.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 d24ba4f856e..4e977383ec5 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 @@ -180,9 +180,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"); @@ -195,8 +194,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)) { @@ -263,6 +261,7 @@ public class TestFSErrorsExposed { faultsStarted = true; } + @Override public int read(long position, byte[] buffer, int offset, int length) throws IOException { injectFault();