Skip to content

Commit cd039d4

Browse files
committed
address review comments
1 parent 08c65db commit cd039d4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionStateNodeLock.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ private void lock0(Object lockBy) {
7171
}
7272

7373
private boolean tryLock0(Object lockBy) {
74-
lock.lock();
74+
if (!lock.tryLock()) {
75+
return false;
76+
}
7577
try {
7678
if (owner == null) {
7779
owner = lockBy;

0 commit comments

Comments
 (0)