mirror of https://github.com/apache/openjpa.git
Remove @Allowfailure in lock manager tests after FinderCache fix.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@748276 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a9c858b39a
commit
bcfb4e9c83
|
@ -20,8 +20,6 @@ package org.apache.openjpa.persistence.lockmgr;
|
|||
|
||||
import javax.persistence.LockModeType;
|
||||
|
||||
import org.apache.openjpa.persistence.test.AllowFailure;
|
||||
|
||||
/**
|
||||
* Test JPA 2.0 LockMode type behaviors with "jpa2" lock manager.
|
||||
*/
|
||||
|
@ -824,12 +822,11 @@ public class TestJPA2LockManager extends LockManagerTestBase {
|
|||
);
|
||||
}
|
||||
|
||||
// TODO:
|
||||
@AllowFailure(message="OPENJPA-924 is preventing RR behavior: pessimistic lock "
|
||||
+ "blocked read on thread 2, once thread-1 commit, thread-2 returns "
|
||||
+ "with pre-thread 1 committed data. hence causing an "
|
||||
+ "OptimisticLockException. Disable FinderCache to workaround the "
|
||||
+ "problem.")
|
||||
// @AllowFailure(message="OPENJPA-924 is preventing RR behavior: pessimistic lock "
|
||||
// + "blocked read on thread 2, once thread-1 commit, thread-2 returns "
|
||||
// + "with pre-thread 1 committed data. hence causing an "
|
||||
// + "OptimisticLockException. Disable FinderCache to workaround the "
|
||||
// + "problem.")
|
||||
public void testConcurrentThread1PessimisticReadTest() {
|
||||
getLog().info("---> testConcurrentThread1PessimisticReadTest()");
|
||||
String baseFirstName;
|
||||
|
@ -1191,12 +1188,11 @@ public class TestJPA2LockManager extends LockManagerTestBase {
|
|||
);
|
||||
}
|
||||
|
||||
// TODO:
|
||||
@AllowFailure(message="OPENJPA-924 is preventing RR behavior: pessimistic lock "
|
||||
+ "blocked read on thread 2, once thread-1 commit, thread-2 returns "
|
||||
+ "with pre-thread 1 committed data. hence causing an "
|
||||
+ "OptimisticLockException. Disable FinderCache to workaround the "
|
||||
+ "problem.")
|
||||
// @AllowFailure(message="OPENJPA-924 is preventing RR behavior: pessimistic lock "
|
||||
// + "blocked read on thread 2, once thread-1 commit, thread-2 returns "
|
||||
// + "with pre-thread 1 committed data. hence causing an "
|
||||
// + "OptimisticLockException. Disable FinderCache to workaround the "
|
||||
// + "problem.")
|
||||
public void testConcurrentThread1PessimisticForceIncTest() {
|
||||
getLog().info("---> testConcurrentThread1PessimisticForceIncTest()");
|
||||
String baseFirstName;
|
||||
|
|
|
@ -20,8 +20,6 @@ package org.apache.openjpa.persistence.lockmgr;
|
|||
|
||||
import javax.persistence.LockModeType;
|
||||
|
||||
import org.apache.openjpa.persistence.test.AllowFailure;
|
||||
|
||||
/**
|
||||
* Test JPA 2.0 LockTypeMode semantics using OpenJPA pessimistic
|
||||
* "pessimistic" lock manager.
|
||||
|
@ -132,12 +130,11 @@ public class TestPessimisticLockManager extends LockManagerTestBase {
|
|||
);
|
||||
}
|
||||
|
||||
// TODO:
|
||||
@AllowFailure(message="OPENJPA-924 is preventing RR behavior: pessimistic lock "
|
||||
+ "blocked read on thread 2, once thread-1 commit, thread-2 returns "
|
||||
+ "with pre-thread 1 committed data. hence causing an "
|
||||
+ "OptimisticLockException. Disable FinderCache to workaround the "
|
||||
+ "problem.")
|
||||
// @AllowFailure(message="OPENJPA-924 is preventing RR behavior: pessimistic lock "
|
||||
// + "blocked read on thread 2, once thread-1 commit, thread-2 returns "
|
||||
// + "with pre-thread 1 committed data. hence causing an "
|
||||
// + "OptimisticLockException. Disable FinderCache to workaround the "
|
||||
// + "problem.")
|
||||
public void testConcurrentThread1ReadTest() {
|
||||
getLog().info("---> testConcurrentThread1ReadTest()");
|
||||
String baseFirstName;
|
||||
|
@ -487,12 +484,11 @@ public class TestPessimisticLockManager extends LockManagerTestBase {
|
|||
);
|
||||
}
|
||||
|
||||
// TODO:
|
||||
@AllowFailure(message="OPENJPA-924 is preventing RR behavior: pessimistic lock "
|
||||
+ "blocked read on thread 2, once thread-1 commit, thread-2 returns "
|
||||
+ "with pre-thread 1 committed data. hence causing an "
|
||||
+ "OptimisticLockException. Disable FinderCache to workaround the "
|
||||
+ "problem.")
|
||||
// @AllowFailure(message="OPENJPA-924 is preventing RR behavior: pessimistic lock "
|
||||
// + "blocked read on thread 2, once thread-1 commit, thread-2 returns "
|
||||
// + "with pre-thread 1 committed data. hence causing an "
|
||||
// + "OptimisticLockException. Disable FinderCache to workaround the "
|
||||
// + "problem.")
|
||||
public void testConcurrentThread1WriteTest() {
|
||||
getLog().info("---> testConcurrentThread1WriteTest()");
|
||||
String baseFirstName;
|
||||
|
@ -842,12 +838,11 @@ public class TestPessimisticLockManager extends LockManagerTestBase {
|
|||
);
|
||||
}
|
||||
|
||||
// TODO:
|
||||
@AllowFailure(message="OPENJPA-924 is preventing RR behavior: pessimistic lock "
|
||||
+ "blocked read on thread 2, once thread-1 commit, thread-2 returns "
|
||||
+ "with pre-thread 1 committed data. hence causing an "
|
||||
+ "OptimisticLockException. Disable FinderCache to workaround the "
|
||||
+ "problem.")
|
||||
// @AllowFailure(message="OPENJPA-924 is preventing RR behavior: pessimistic lock "
|
||||
// + "blocked read on thread 2, once thread-1 commit, thread-2 returns "
|
||||
// + "with pre-thread 1 committed data. hence causing an "
|
||||
// + "OptimisticLockException. Disable FinderCache to workaround the "
|
||||
// + "problem.")
|
||||
public void testConcurrentThread1PessimisticReadTest() {
|
||||
getLog().info("---> testConcurrentThread1PessimisticReadTest()");
|
||||
String baseFirstName;
|
||||
|
@ -1209,12 +1204,11 @@ public class TestPessimisticLockManager extends LockManagerTestBase {
|
|||
);
|
||||
}
|
||||
|
||||
// TODO:
|
||||
@AllowFailure(message="OPENJPA-924 is preventing RR behavior: pessimistic lock "
|
||||
+ "blocked read on thread 2, once thread-1 commit, thread-2 returns "
|
||||
+ "with pre-thread 1 committed data. hence causing an "
|
||||
+ "OptimisticLockException. Disable FinderCache to workaround the "
|
||||
+ "problem.")
|
||||
// @AllowFailure(message="OPENJPA-924 is preventing RR behavior: pessimistic lock "
|
||||
// + "blocked read on thread 2, once thread-1 commit, thread-2 returns "
|
||||
// + "with pre-thread 1 committed data. hence causing an "
|
||||
// + "OptimisticLockException. Disable FinderCache to workaround the "
|
||||
// + "problem.")
|
||||
public void testConcurrentThread1PessimisticForceIncTest() {
|
||||
getLog().info("---> testConcurrentThread1PessimisticForceIncTest()");
|
||||
String baseFirstName;
|
||||
|
|
Loading…
Reference in New Issue