Skip to content

Commit eaca728

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 d94087e commit eaca728

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,15 @@
3737
import org.hibernate.HibernateException;
3838
import org.hibernate.collection.spi.AbstractPersistentCollection;
3939
import org.hibernate.collection.spi.PersistentCollection;
40+
import org.hibernate.dialect.CockroachDialect;
41+
import org.hibernate.dialect.HSQLDialect;
4042
import org.hibernate.engine.spi.CollectionEntry;
4143

4244
import org.hibernate.testing.TestForIssue;
4345
import org.hibernate.testing.orm.junit.DomainModel;
4446
import org.hibernate.testing.orm.junit.SessionFactory;
4547
import org.hibernate.testing.orm.junit.SessionFactoryScope;
48+
import org.hibernate.testing.orm.junit.SkipForDialect;
4649
import org.junit.jupiter.api.Test;
4750

4851
import static org.junit.jupiter.api.Assertions.assertEquals;
@@ -284,6 +287,8 @@ public void testCopyPersistentCollectionReferenceBeforeFlush(SessionFactoryScope
284287

285288
@Test
286289
@TestForIssue(jiraKey = "HHH-9518")
290+
@SkipForDialect(dialectClass = HSQLDialect.class, reason = "The select triggered by the merge just hang without any exception")
291+
@SkipForDialect(dialectClass = CockroachDialect.class, reason = "The merge in the second session causes a deadlock")
287292
public void testCopyPersistentCollectionReferenceAfterFlush(SessionFactoryScope scope) {
288293
Parent p = new Parent();
289294
Child c = new Child();

0 commit comments

Comments
 (0)