Revert "HBASE-5162 Basic client pushback mechanism (Jesse Yates); ADDENDUM"
This reverts commit f7154e1ac9
.
This commit is contained in:
parent
f7154e1ac9
commit
6a042c381a
|
@ -108,16 +108,6 @@
|
|||
<dependency>
|
||||
<groupId>org.apache.hbase</groupId>
|
||||
<artifactId>hbase-common</artifactId>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.apache.hadoop</groupId>
|
||||
<artifactId>hadoop-mapreduce-client-core</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.hbase</groupId>
|
||||
|
@ -145,6 +135,14 @@
|
|||
<groupId>commons-logging</groupId>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.protobuf</groupId>
|
||||
<artifactId>protobuf-java</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.netty</groupId>
|
||||
<artifactId>netty-all</artifactId>
|
||||
|
@ -221,38 +219,14 @@
|
|||
<groupId>org.apache.hadoop</groupId>
|
||||
<artifactId>hadoop-common</artifactId>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>com.google.code.findbugs</groupId>
|
||||
<artifactId>jsr305</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>com.github.stephenc.findbugs</groupId>
|
||||
<artifactId>findbugs-annotations</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>net.java.dev.jets3t</groupId>
|
||||
<artifactId>jets3t</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>javax.servlet.jsp</groupId>
|
||||
<artifactId>jsp-api</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>org.mortbay.jetty</groupId>
|
||||
<artifactId>jetty</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>com.sun.jersey</groupId>
|
||||
<artifactId>jersey-server</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>com.sun.jersey</groupId>
|
||||
<artifactId>jersey-core</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>com.sun.jersey</groupId>
|
||||
<artifactId>jersey-json</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>servlet-api</artifactId>
|
||||
|
@ -267,7 +241,6 @@
|
|||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<!--
|
||||
<dependency>
|
||||
<groupId>org.apache.hadoop</groupId>
|
||||
<artifactId>hadoop-auth</artifactId>
|
||||
|
@ -282,7 +255,6 @@
|
|||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
-->
|
||||
</dependencies>
|
||||
</profile>
|
||||
|
||||
|
|
|
@ -90,14 +90,11 @@ public class RpcRetryingCallerFactory {
|
|||
String clazzName = RpcRetryingCallerFactory.class.getName();
|
||||
String rpcCallerFactoryClazz =
|
||||
configuration.get(RpcRetryingCallerFactory.CUSTOM_CALLER_CONF_KEY, clazzName);
|
||||
RpcRetryingCallerFactory factory;
|
||||
if (rpcCallerFactoryClazz.equals(clazzName)) {
|
||||
factory = new RpcRetryingCallerFactory(configuration, interceptor);
|
||||
} else {
|
||||
factory = ReflectionUtils.instantiateWithCustomCtor(
|
||||
rpcCallerFactoryClazz, new Class[] { Configuration.class },
|
||||
new Object[] { configuration });
|
||||
return new RpcRetryingCallerFactory(configuration, interceptor);
|
||||
}
|
||||
RpcRetryingCallerFactory factory = ReflectionUtils.instantiateWithCustomCtor(
|
||||
rpcCallerFactoryClazz, new Class[] { Configuration.class }, new Object[] { configuration });
|
||||
|
||||
// setting for backwards compat with existing caller factories, rather than in the ctor
|
||||
factory.setStatisticTracker(stats);
|
||||
|
|
|
@ -64,7 +64,7 @@ public class StatsTrackingRpcRetryingCaller<T> implements RpcRetryingCaller<T> {
|
|||
|
||||
// mutli-server callables span multiple regions, so they don't have a location,
|
||||
// but they are region server callables, so we have to handle them when we process the
|
||||
// result in AsyncProcess#receiveMultiAction, not in here
|
||||
// result, not in here
|
||||
if (callable instanceof MultiServerCallable) {
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -50,7 +50,8 @@ public class TestClientPushback {
|
|||
conf.setBoolean(HConstants.ENABLE_CLIENT_BACKPRESSURE, true);
|
||||
// turn the memstore size way down so we don't need to write a lot to see changes in memstore
|
||||
// load
|
||||
conf.setLong(HConstants.HREGION_MEMSTORE_FLUSH_SIZE, flushSizeBytes);
|
||||
conf.setLong(HConstants.HREGION_MEMSTORE_FLUSH_SIZE,
|
||||
flushSizeBytes);
|
||||
// ensure we block the flushes when we are double that flushsize
|
||||
conf.setLong("hbase.hregion.memstore.block.multiplier", 2);
|
||||
|
||||
|
@ -64,11 +65,10 @@ public class TestClientPushback {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testClientTracksServerPushback() throws Exception{
|
||||
public void testClientTrackesServerPushback() throws Exception{
|
||||
Configuration conf = UTIL.getConfiguration();
|
||||
TableName tablename = TableName.valueOf(tableName);
|
||||
Connection conn = ConnectionFactory.createConnection(conf);
|
||||
HTable table = (HTable) conn.getTable(tablename);
|
||||
HTable table = new HTable(conf, tablename);
|
||||
//make sure we flush after each put
|
||||
table.setAutoFlushTo(true);
|
||||
|
||||
|
@ -78,8 +78,8 @@ public class TestClientPushback {
|
|||
table.put(p);
|
||||
|
||||
// get the stats for the region hosting our table
|
||||
ClusterConnection connection = table.connection;
|
||||
ServerStatisticTracker stats = connection.getStatisticsTracker();
|
||||
ClusterConnection conn = ConnectionManager.getConnectionInternal(conf);
|
||||
ServerStatisticTracker stats = conn.getStatisticsTracker();
|
||||
assertNotNull( "No stats configured for the client!", stats);
|
||||
// get the names so we can query the stats
|
||||
ServerName server = UTIL.getHBaseCluster().getRegionServer(0).getServerName();
|
||||
|
|
Loading…
Reference in New Issue