You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2015/05/20 16:32:17.897 ERROR [PatchedDefaultFlushEventListener] Could not synchronize database state with session
org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.linkedin.glu.console.domain.DbCurrentSystem#1]
at org.grails.datastore.gorm.GormStaticApi.withTransaction(GormStaticApi.groovy:687)
at org.linkedin.glu.console.provisioner.services.storage.SystemStorageImpl.saveCurrentSystem(SystemStorageImpl.groovy:68)
at org.linkedin.glu.orchestration.engine.system.SystemServiceImpl.saveCurrentSystem(SystemServiceImpl.groovy:163)
at org.linkedin.glu.orchestration.engine.system.AuditedSystemService.saveCurrentSystem(AuditedSystemService.groovy:37)
at org.linkedin.glu.console.controllers.ModelController$_saveCurrentSystem_closure14.doCall(ModelController.groovy:191)
at org.linkedin.glu.console.controllers.ControllerBase.withLock(ControllerBase.groovy:119)
at org.linkedin.glu.console.controllers.ModelController.saveCurrentSystem(ModelController.groovy:184)
at org.linkedin.glu.console.controllers.ModelController$_closure9.doCall(ModelController.groovy:271)
although the lock prevent the 2 actions to happen at the same time,
the issue is that the grails/hibernate session is flushed on request completion
hence will be flushed outside the lock
=> fix was to create new session
From forum thread: http://glu.977617.n3.nabble.com/Potential-synchronization-issue-td4026912.html
The text was updated successfully, but these errors were encountered: