Merge "Issue #2769 Removed aggressive Hibernate session flushes" into omaha_14.2.1
Former-commit-id:fe3963680d
[formerly844f05e1ef
] [formerlyfb8d982ede
[formerly b2edf70f6d9404ed4963ee874c3e03d13bf49303]] Former-commit-id:fb8d982ede
Former-commit-id:4c361f2cff
This commit is contained in:
commit
99a7c7afd7
3 changed files with 3 additions and 4 deletions
|
@ -53,6 +53,7 @@ import com.raytheon.uf.edex.registry.ebxml.exception.EbxmlRegistryException;
|
|||
* 7/11/2013 1707 bphillip Initial implementation
|
||||
* 7/29/2013 2191 bphillip Added executors to remove orphaned slots and expired events
|
||||
* 1/15/2014 2613 bphillip Added Hibernate flush() call
|
||||
* 2/4/2014 2769 bphillip Removed flush and clear call
|
||||
* </pre>
|
||||
*
|
||||
* @author bphillip
|
||||
|
@ -163,7 +164,6 @@ public class RegistryGarbageCollector {
|
|||
@Override
|
||||
public void runWithTransaction() {
|
||||
eventDao.delete(event);
|
||||
eventDao.flushAndClearSession();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -93,6 +93,7 @@ import com.raytheon.uf.edex.registry.ebxml.util.EbxmlObjectUtil;
|
|||
* 12/2/2013 1829 bphillip Added getIdsFrom action method and changed how slots are added to objects
|
||||
* 1/15/2014 2613 bphillip Added batching of notification update queries to reduce number of web service calls
|
||||
* 01/21/2014 2613 bphillip Added home slot to remove objects request so delete events are properly handled
|
||||
* 2/4/2014 2769 bphillip Removed flush and clear call
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -214,7 +215,6 @@ public class NotificationListenerImpl implements NotificationListener {
|
|||
}
|
||||
|
||||
}
|
||||
registryDao.flushAndClearSession();
|
||||
statusHandler.info("Processing notification id ["
|
||||
+ notification.getId() + "] completed in "
|
||||
+ (TimeUtil.currentTimeMillis() - startTime) + " ms");
|
||||
|
|
|
@ -82,6 +82,7 @@ import com.raytheon.uf.edex.registry.ebxml.util.EbxmlObjectUtil;
|
|||
* 12/9/2013 2613 bphillip Setting last run time of subscription now occurs before notification is sent
|
||||
* 1/15/2014 2613 bphillip Added Hibernate flush and clear after subscription processing
|
||||
* 01/21/2014 2613 bphillip Changed how last run time is updated for replication subscriptions
|
||||
* 2/4/2014 2769 bphillip Removed flush and clear call
|
||||
* </pre>
|
||||
*
|
||||
* @author bphillip
|
||||
|
@ -406,8 +407,6 @@ public class RegistrySubscriptionManager implements
|
|||
statusHandler.error(
|
||||
"Errors occurred while processing subscription ["
|
||||
+ subscriptionName + "]", e);
|
||||
} finally {
|
||||
subscriptionDao.flushAndClearSession();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue