Pengzna commented on code in PR #17233:
URL: https://github.com/apache/iotdb/pull/17233#discussion_r2876979283
##########
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/pipe/coordinator/task/PipeTaskCoordinator.java:
##########
@@ -86,18 +86,11 @@ public AtomicReference<PipeTaskInfo> lock() {
* Unlock the pipe task coordinator. Calling this method will clear the pipe
task info holder,
* which means that the holder will be null after calling this method.
*
- * @return {@code true} if successfully unlocked, {@code false} if current
thread is not holding
- * the lock.
+ * @return {@code true} if successfully unlocked.
*/
public boolean unlock() {
- try {
- pipeTaskCoordinatorLock.unlock();
- return true;
- } catch (IllegalMonitorStateException ignored) {
- // This is thrown if unlock() is called without lock() called first.
- LOGGER.warn("This thread is not holding the lock.");
- return false;
- }
+ pipeTaskCoordinatorLock.unlock();
+ return true;
}
Review Comment:
fixed
--
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]