Dear All, I have started working on a fineract 1.6 banking solution product. However, during the testing process we encountered the error as OptimisticLockException during withdrawal and deposit. Our database has 10,000 transactions for a single savings account. During testing we triggered 100 iterations using the POSTMAN rest client.
I'm thinking in the following ways to change the code. 1. Using @Transaction with isolation level as serializable so that It will lock the row 2. Using to retrieve latest version of a savings account @Version value and set that value in the old entity which is going to update in the database. 3. Using @retry to retrieve failed transaction. 4. change code from cascade type all to persist in the SavingsAccount.java for SavingsAccountTransaction mapping. Any other way to solve this problem? https://lists.apache.org/thread/2klx9c28jd7rmty7p65qbgs2wmmo25jh. I followed this link and didn't get clarity on this. Thanks, Sathish
