Skip to content

Commit 7bd50db

Browse files
maesenkabeikov
authored andcommitted
HHH-18755 - Skip test that causes deadlock
On CockroachDB the method `testCopyPersistentCollectionReferenceAfterFlush` causes a deadlock, which is resolved eventually by a TimeoutException. This problem has been discussed in cockroachdb/cockroach#61269. The CockroachDB developers do not see this as a bug that needs to be fixed. Therefore we skip this test for CockroachDB.
1 parent 76ad300 commit 7bd50db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/collection/multisession/MultipleSessionCollectionTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import org.hibernate.Hibernate;
2020
import org.hibernate.collection.spi.AbstractPersistentCollection;
2121
import org.hibernate.collection.spi.PersistentCollection;
22+
import org.hibernate.dialect.CockroachDialect;
2223
import org.hibernate.dialect.HSQLDialect;
2324
import org.hibernate.engine.spi.CollectionEntry;
2425

@@ -95,6 +96,7 @@ public void testCopyPersistentCollectionReferenceBeforeFlush(SessionFactoryScope
9596
@Test
9697
@JiraKey("HHH-9518")
9798
@SkipForDialect(dialectClass = HSQLDialect.class, reason = "The select triggered by the merge just hang without any exception")
99+
@SkipForDialect(dialectClass = CockroachDialect.class, reason = "The merge in the second session causes a deadlock")
98100
public void testCopyPersistentCollectionReferenceAfterFlush(SessionFactoryScope scope) {
99101
Parent p = new Parent();
100102
Child c = new Child();

0 commit comments

Comments
 (0)