sv2000 commented on a change in pull request #2719: [GOBBLIN-863]Handle race 
condition issue for hive registration
URL: https://github.com/apache/incubator-gobblin/pull/2719#discussion_r316973043
 
 

 ##########
 File path: 
gobblin-hive-registration/src/main/java/org/apache/gobblin/hive/metastore/HiveMetaStoreBasedRegister.java
 ##########
 @@ -176,7 +189,7 @@ protected void registerPath(HiveSpec spec) throws 
IOException {
    * Or will create the table thru. RPC and return retVal from remote 
MetaStore.
    */
   private boolean ensureHiveTableExistenceBeforeAlternation(String tableName, 
String dbName, IMetaStoreClient client,
-      Table table, HiveSpec spec) throws TException{
+      Table table, HiveSpec spec) throws TException, IOException{
     try (AutoCloseableLock lock = this.locks.getTableLock(dbName, tableName)) {
 
 Review comment:
   Isn't this lock a JVM-local lock? Won't we need Hive Metastore side locking 
to serialize updates?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to