Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.7.0
-
None
-
None
Description
For TestMetastoreEndToEnd, If metastore didn't finish the initialization. context.getMetaStoreClient will throw exception.
HiveMetaStoreClient client = context.getMetaStoreClient(ADMIN1);
We should wait for the initialization of metastore, for example:
HiveMetaStoreClient client = null; for (int i=0; i < 10; i++) { try { client = context.getMetaStoreClient(ADMIN1); break; } catch (Throwable e) { // ignore } Thread.sleep(6000); }
Attachments
Attachments
Issue Links
- links to