The Sequence generator in the Hot Rod Dialect, mainly implemented by {{org.hibernate.ogm.datastore.infinispanremote.impl.sequences.HotRodSequencer}} uses atomic CAS operations over Hot Rod.
In case of high contention, which is certainly possible on these, a good sequencer should fallback to pessimistic locking but this is not an option when using Hot Rod.
Some exit condition should be introduced to avoid excessive spinning, throwing an exception is undesirable though. At least log a warning? |
|