aturoczy commented on code in PR #5186: URL: https://github.com/apache/hive/pull/5186#discussion_r1558094523
########## standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java: ########## @@ -705,12 +706,11 @@ public LockResponse lockMaterializationRebuild(String dbName, String tableName, public boolean heartbeatLockMaterializationRebuild(String dbName, String tableName, long txnId) throws MetaException { int result = jdbcResource.execute( "UPDATE \"MATERIALIZATION_REBUILD_LOCKS\"" + - " SET \"MRL_LAST_HEARTBEAT\" = " + Instant.now().toEpochMilli() + - " WHERE \"MRL_TXN_ID\" = " + txnId + - " AND \"MRL_DB_NAME\" = ?" + - " AND \"MRL_TBL_NAME\" = ?", + " SET \"MRL_LAST_HEARTBEAT\" = " + getEpochFn(jdbcResource.getDatabaseProduct()) + Review Comment: Just for curiasity what the difference between the Intant.now and the getEpochFn? ########## standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/jdbc/functions/HeartbeatTxnRangeFunction.java: ########## @@ -82,7 +82,7 @@ public HeartbeatTxnRangeResponse execute(MultiDataSourceJdbcResource jdbcResourc } if (updateCnt == numTxnsToHeartbeat) { //fast pass worked, i.e. all txns we were asked to heartbeat were Open as expected - context.rollbackToSavepoint(savePoint); + context.createSavepoint(); Review Comment: Dont you need to roll it back? -- 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-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org