aservo / ldap-crowd-adapter

An LDAP server that delegates request to Atlassian Crowd
Apache License 2.0
2 stars 3 forks source link

Bug: sync db lock is not released when an db error occurs during sync #34

Open peterhoepfl opened 1 year ago

peterhoepfl commented 1 year ago

When an error occurs during sync and the transaction is rolled back the dblock is not released although it should. Caused by: org.postgresql.util.PSQLException: ERROR: current transaction is aborted, commands ignored until end of transaction block

As consequence transaction in MirrorStratgey.run() must be split.

peterhoepfl commented 1 year ago

Solution ist to set autocommit to true before calling the releasedblock method.