emmanuelbernard/hibernate-ogm — comment on commit 4e8183c5fe0fee44b32612b8410fded57ec018e5
File: hibernate-ogm-core/src/main/java/org/hibernate/ogm/dialect/infinispan/InfinispanPessimisticWriteLockingStrategy.java line 58
By Sanne:

bq. Personally I think lock should be honored so throwing an exception does not look right to me (RE optimistic mode).
right, same thoughts here. And actually optimistic mode is quite important as it's the only mode in which locks are acquired during the prepare phase only. (blocking write locks on all to-be-written keys).

bq. PESSIMISTIC_READ has lighter semantics that PESSIMISTIC_WRITE but I don't know how to implement them differently.
I'm wondering if support for these is mandatory to all databases, or left to implementation detail. to implement that, that's an "epic" kind of issue, although I've some ideas how that could possibly work after speaking more with Jonathan.