Issue #2769 Removed aggressive Hibernate session flushes

Change-Id: Idaeb3ecf0a62cc586ed34525260034cd89e96216

Former-commit-id: 5d46aaf0fb [formerly 5de996ac4a] [formerly 3f4b92fffb] [formerly 3f4b92fffb [formerly 1691c5a3ff]] [formerly 5d46aaf0fb [formerly 5de996ac4a] [formerly 3f4b92fffb] [formerly 3f4b92fffb [formerly 1691c5a3ff]] [formerly fc589ed84d [formerly 3f4b92fffb [formerly 1691c5a3ff] [formerly fc589ed84d [formerly 0440395a596d13bf8b4f1dda4857c185c6c8afa5]]]]]
Former-commit-id: fc589ed84d
Former-commit-id: 57be348cfc [formerly 1e0a1a6df8] [formerly 20d26dc5a0] [formerly b769711fce2a2f3e101bb0ba2e48ce3a01563a7a [formerly b3183ec5423ee6e72bab494f9fa0adc8a517ca47] [formerly 20d26dc5a0 [formerly cdaa7e32b4]]]
Former-commit-id: 6416df19e64d37f4af84dfbedf6ac1cd659db219 [formerly f65125400771d978a456076f39fe1ff9b3529402] [formerly d4adefdad8 [formerly 01def4be4a]]
Former-commit-id: d4adefdad8
Former-commit-id: af03234dcc
This commit is contained in:
Benjamin Phillippe 2014-02-04 10:24:11 -06:00
parent 3285ade69a
commit 680db897c0
3 changed files with 3 additions and 4 deletions

View file

@ -53,6 +53,7 @@ import com.raytheon.uf.edex.registry.ebxml.exception.EbxmlRegistryException;
* 7/11/2013 1707 bphillip Initial implementation * 7/11/2013 1707 bphillip Initial implementation
* 7/29/2013 2191 bphillip Added executors to remove orphaned slots and expired events * 7/29/2013 2191 bphillip Added executors to remove orphaned slots and expired events
* 1/15/2014 2613 bphillip Added Hibernate flush() call * 1/15/2014 2613 bphillip Added Hibernate flush() call
* 2/4/2014 2769 bphillip Removed flush and clear call
* </pre> * </pre>
* *
* @author bphillip * @author bphillip
@ -163,7 +164,6 @@ public class RegistryGarbageCollector {
@Override @Override
public void runWithTransaction() { public void runWithTransaction() {
eventDao.delete(event); eventDao.delete(event);
eventDao.flushAndClearSession();
} }
} }
} }

View file

@ -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 * 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 * 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 * 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> * </pre>
* *
@ -214,7 +215,6 @@ public class NotificationListenerImpl implements NotificationListener {
} }
} }
registryDao.flushAndClearSession();
statusHandler.info("Processing notification id [" statusHandler.info("Processing notification id ["
+ notification.getId() + "] completed in " + notification.getId() + "] completed in "
+ (TimeUtil.currentTimeMillis() - startTime) + " ms"); + (TimeUtil.currentTimeMillis() - startTime) + " ms");

View file

@ -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 * 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 * 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 * 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> * </pre>
* *
* @author bphillip * @author bphillip
@ -406,8 +407,6 @@ public class RegistrySubscriptionManager implements
statusHandler.error( statusHandler.error(
"Errors occurred while processing subscription [" "Errors occurred while processing subscription ["
+ subscriptionName + "]", e); + subscriptionName + "]", e);
} finally {
subscriptionDao.flushAndClearSession();
} }
} }