deniskuzZ commented on code in PR #6142:
URL: https://github.com/apache/hive/pull/6142#discussion_r2444197787
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/leader/LeaseLeaderElection.java:
##########
@@ -111,14 +111,22 @@ private synchronized void doWork(LockResponse resp,
Configuration conf,
switch (resp.getState()) {
case ACQUIRED:
- boolean renewLease = conf.getBoolean(METASTORE_RENEW_LEASE, true);
- heartbeater = renewLease ?
- new Heartbeater(conf, tableName) : new
ReleaseAndRequireWatcher(conf, tableName);
+ heartbeater = new Heartbeater(conf, tableName);
heartbeater.perform();
if (!isLeader) {
isLeader = true;
notifyListener();
}
+ if (!conf.getBoolean(METASTORE_RENEW_LEASE, true)) {
+ // For test only.
Review Comment:
again, same thing.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]