Hibernate HiLo id generator does not initialise value when creating new bucket

Description

I think I have spotted a bug in the HiLo implementation.

When the bucket has reached its limit, a new last source value is retrieved from the HiLo table.
The upper limit is then set, but the current value is never set to the new bucket start value.
This means that if there is more than one process using the same HiLo sequence, the HiLo values could start overlapping.

//SHOULD SET generationState.value HERE

Environment

None

Assignee

Unassigned

Reporter

Gary Plante

Fix versions

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure