You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2021/10/12 16:48:14 UTC

[GitHub] [hive] szehon-ho commented on a change in pull request #2647: HIVE-25522 NullPointerException in TxnHandler

szehon-ho commented on a change in pull request #2647:
URL: https://github.com/apache/hive/pull/2647#discussion_r727322155



##########
File path: standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnUtils.java
##########
@@ -129,6 +130,22 @@ public static TxnStore getTxnStore(Configuration conf) {
     }
   }
 
+  /**
+   * Initialize static variables of TxnStore
+   * @param conf configuration
+   */
+  public static void initializeTxnStore(Configuration conf) {
+    String className = MetastoreConf.getVar(conf, ConfVars.TXN_STORE_IMPL);
+    try {
+      Method init = JavaUtils.getClass(className, TxnStore.class)

Review comment:
       It follows approach of getTxnStore() code just above.   Any suggestion?  (I need to invoke the method on the implementation class)




-- 
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.

To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org