@BeforeClass public static void setupCluster() throws Exception{ Configuration conf = UTIL.getConfiguration(); // enable backpressure conf.setBoolean(HConstants.ENABLE_CLIENT_BACKPRESSURE, true); // use the exponential backoff policy conf.setClass(ClientBackoffPolicy.BACKOFF_POLICY_CLASS, ExponentialClientBackoffPolicy.class, ClientBackoffPolicy.class); // 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); // ensure we block the flushes when we are double that flushsize conf.setLong(HConstants.HREGION_MEMSTORE_BLOCK_MULTIPLIER, HConstants.DEFAULT_HREGION_MEMSTORE_BLOCK_MULTIPLIER); conf.setBoolean(CLIENT_SIDE_METRICS_ENABLED_KEY, true); UTIL.startMiniCluster(); UTIL.createTable(tableName, family); }
@BeforeClass public static void setupCluster() throws Exception{ Configuration conf = UTIL.getConfiguration(); // enable backpressure conf.setBoolean(HConstants.ENABLE_CLIENT_BACKPRESSURE, true); // use the exponential backoff policy conf.setClass(ClientBackoffPolicy.BACKOFF_POLICY_CLASS, ExponentialClientBackoffPolicy.class, ClientBackoffPolicy.class); // 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); // ensure we block the flushes when we are double that flushsize conf.setLong("hbase.hregion.memstore.block.multiplier", 2); UTIL.startMiniCluster(); UTIL.createTable(tableName, family); }
@BeforeClass public static void setupCluster() throws Exception{ Configuration conf = UTIL.getConfiguration(); // enable backpressure conf.setBoolean(HConstants.ENABLE_CLIENT_BACKPRESSURE, true); // use the exponential backoff policy conf.setClass(ClientBackoffPolicy.BACKOFF_POLICY_CLASS, ExponentialClientBackoffPolicy.class, ClientBackoffPolicy.class); // 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); // ensure we block the flushes when we are double that flushsize conf.setLong(HConstants.HREGION_MEMSTORE_BLOCK_MULTIPLIER, HConstants.DEFAULT_HREGION_MEMSTORE_BLOCK_MULTIPLIER); conf.setBoolean(CLIENT_SIDE_METRICS_ENABLED_KEY, true); UTIL.startMiniCluster(1); UTIL.createTable(tableName, family); }
@Override public ClientBackoffPolicy getBackoffPolicy() { return wrappedConnection.getBackoffPolicy(); }
@Override public ClientBackoffPolicy getBackoffPolicy() { return this.backoffPolicy; }
/** * @return the configured client backoff policy */ ClientBackoffPolicy getBackoffPolicy();