@Test
public void testRetriableClientWithConnLifetime() throws Exception {
Configuration newConf = MetastoreConf.newMetastoreConf(new Configuration(this.conf));
MetastoreConf.setTimeVar(newConf, ConfVars.CLIENT_SOCKET_LIFETIME, 4, TimeUnit.SECONDS);
MetaStoreTestUtils.setConfForStandloneMode(newConf);
long timeout = 5 * 1000;
IMetaStoreClient client = RetryingMetaStoreClient.getProxy(newConf, getHookLoader(), HiveMetaStoreClient.class.getName());
client.getAllDatabases();
client.close();
client = RetryingMetaStoreClient.getProxy(newConf, getHookLoader(), HiveMetaStoreClient.class.getName());
Thread.sleep(timeout);
client.getAllDatabases();
client.close();
}