Class RequestHedgingProxyProvider<T>

All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hadoop.io.retry.FailoverProxyProvider<T>

public class RequestHedgingProxyProvider<T> extends ConfiguredFailoverProxyProvider<T>
A FailoverProxyProvider implementation that technically does not "failover" per-se. It constructs a wrapper proxy that sends the request to ALL underlying proxies simultaneously. It assumes the in an HA setup, there will be only one Active, and the active should respond faster than any configured standbys. Once it receive a response from any one of the configured proxies, outstanding requests to other proxies are immediately cancelled.
  • Field Details

    • LOG

      public static final org.slf4j.Logger LOG
  • Constructor Details

    • RequestHedgingProxyProvider

      public RequestHedgingProxyProvider(org.apache.hadoop.conf.Configuration conf, URI uri, Class<T> xface, HAProxyFactory<T> proxyFactory)
  • Method Details