You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by ad...@apache.org on 2023/12/28 21:34:51 UTC
(ozone) branch master updated: HDDS-10023. testLockViolations should fail if exception is not thrown (#5880)
This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 4eca52b6b7 HDDS-10023. testLockViolations should fail if exception is not thrown (#5880)
4eca52b6b7 is described below
commit 4eca52b6b76b0737bfb2d6ed94097969a0737a45
Author: TaiJuWu <33...@users.noreply.github.com>
AuthorDate: Fri Dec 29 05:34:45 2023 +0800
HDDS-10023. testLockViolations should fail if exception is not thrown (#5880)
---
.../test/java/org/apache/hadoop/ozone/om/lock/TestOzoneManagerLock.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/hadoop-ozone/common/src/test/java/org/apache/hadoop/ozone/om/lock/TestOzoneManagerLock.java b/hadoop-ozone/common/src/test/java/org/apache/hadoop/ozone/om/lock/TestOzoneManagerLock.java
index 3517706926..5c4206fa19 100644
--- a/hadoop-ozone/common/src/test/java/org/apache/hadoop/ozone/om/lock/TestOzoneManagerLock.java
+++ b/hadoop-ozone/common/src/test/java/org/apache/hadoop/ozone/om/lock/TestOzoneManagerLock.java
@@ -171,6 +171,7 @@ public class TestOzoneManagerLock {
try {
resourceName = generateResourceName(resource);
lock.acquireWriteLock(resource, resourceName);
+ fail("testLockViolations failed");
} catch (RuntimeException ex) {
String message = "cannot acquire " + resource.getName() + " lock " +
"while holding " + currentLocks + " lock(s).";
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org