You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by jc...@apache.org on 2019/10/19 00:26:56 UTC

[hive] branch master updated: HIVE-22336: Updates should be pushed to the Metastore backend DB before creating the notification event (Marta Kuczora, reviewed by Jesus Camacho Rodriguez)

This is an automated email from the ASF dual-hosted git repository.

jcamacho pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new 8707cdc  HIVE-22336: Updates should be pushed to the Metastore backend DB before creating the notification event (Marta Kuczora, reviewed by Jesus Camacho Rodriguez)
8707cdc is described below

commit 8707cdc3b48393182036589bc666e0b6e63c2d10
Author: Marta Kuczora <ku...@cloudera.com>
AuthorDate: Fri Oct 18 17:25:55 2019 -0700

    HIVE-22336: Updates should be pushed to the Metastore backend DB before creating the notification event (Marta Kuczora, reviewed by Jesus Camacho Rodriguez)
---
 .../src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java      | 1 +
 1 file changed, 1 insertion(+)

diff --git a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java
index 862a9c8..50e240e 100644
--- a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java
+++ b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java
@@ -10069,6 +10069,7 @@ public class ObjectStore implements RawStore, Configurable {
     boolean commited = false;
     Query query = null;
     try {
+      pm.flush();
       openTransaction();
       lockNotificationSequenceForUpdate();
       query = pm.newQuery(MNotificationNextId.class);