Clone
Sorabh Hamirwasia <shamirwasia@maprtech.com>
committed
on 26 Oct 16
DRILL-4964: Make Drill reconnect to hive metastore after hive metastore is restarted.
Drill fails to connect to hive metastore after hive me… Show more
DRILL-4964: Make Drill reconnect to hive metastore after hive metastore is restarted.

Drill fails to connect to hive metastore after hive metastore is restarted unless drillbits are restarted.

Changes: For methods DrillHiveMetaStoreClient.getAllDatabases() and DrillHiveMetaStoreClient.getAllTables(),

the HiveMetaStoreClient wraps MetaException and TException both into MetaException. In case of connection

failure which is thrown as TException it is difficult to categorize at DrillClient level. The fix is to

close older connection and reconnect in case of these 2 api's. In all other cases proper set of exceptions

are thrown where we can handle each one individually.

close apache/drill#628

Show less

master + 9 more