yihua commented on code in PR #17870:
URL: https://github.com/apache/hudi/pull/17870#discussion_r2771591345
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/transaction/lock/models/LockProviderHeartbeatManager.java:
##########
@@ -213,6 +222,9 @@ private void heartbeatTaskRunner(Thread threadToMonitor) {
// Call synchronized method after releasing the semaphore
if (!heartbeatExecutionSuccessful) {
logger.error("Owner {}: Heartbeat function did not succeed.", ownerId);
+ // Interrupt the monitored thread to notify it of heartbeat failure.
+ threadToMonitor.interrupt();
+ logger.info("Owner {}: Interrupted monitored thread due to heartbeat
failure.", ownerId);
Review Comment:
To avoid this, add `!Thread.currentThread().isInterrupted()` as a condition
for `threadToMonitor.interrupt();`?
--
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]