Skip to content

Commit 8e051ac

Browse files
committed
HHH-19924 Session#find with LockMode.UPGRADE_NOWAIT casues AssetionError when no entity with the provided id exists in the database
1 parent 35c1056 commit 8e051ac

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

hibernate-core/src/main/java/org/hibernate/sql/exec/internal/lock/FollowOnLockingAction.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,6 @@ protected Map<EntityMappingType, List<EntityKey>> segmentLoadedValues() {
254254
final Map<EntityMappingType, List<EntityKey>> map = new IdentityHashMap<>();
255255
LockingHelper.segmentLoadedValues( loadedValuesCollector.getCollectedRootEntities(), map );
256256
LockingHelper.segmentLoadedValues( loadedValuesCollector.getCollectedNonRootEntities(), map );
257-
if ( map.isEmpty() ) {
258-
throw new AssertionFailure( "Expecting some values" );
259-
}
260257
return map;
261258
}
262259

0 commit comments

Comments
 (0)