Hbase table exists method not working as expected
<p>I am trying to create a table in hbase if it doesn't exists.code to this is -</p>

<pre><code>    Configuration config = HBaseConfiguration.create();
config.set("hbase.zookeeper.quorum", "indlin2741");
config.set("hbase.zookeeper.property.clientPort", "2181");

HTable hTable = new HTable(config, "test1");
System.out.println(hTable.getName());
Admin admin=ConnectionFactory.createConnection(config).getAdmin();
HTableDescriptor table = new HTableDescriptor(TableName.valueOf("test1"));

// creating column family descriptor
HColumnDescriptor family = new HColumnDescriptor("ht".getBytes());

// adding coloumn family to HTable
table.addFamily(family);

if(admin.tableExists(TableName.valueOf("test1"))){
admin.createTable(table);
}
</code></pre>

<p>Everything is working if i remove the tableExists method.
Once this method is getting called all the region servers are getting shutdown.
and the bellow error is appering after this</p>

<pre><code>                at com.amdocs.vivo.dh.MergeSchema.Test.main(Test.java:32)
Exception in thread "main" org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=36, exceptions:
Fri Jul 15 15:12:12 IST 2016, null, java.net.SocketTimeoutException: callTimeout=60000, callDuration=77018: row 'test1,,' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=indlin2741.corp.amdocs.com,60020,1468503848155, seqNum=0

    at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.throwEnrichedException(RpcRetryingCallerWithReadReplicas.java:276)
</code></pre>