Merge "Issue #2769 Removed aggressive Hibernate session flushes" into omaha_14.2.1

Former-commit-id: fb8d982ede [formerly 844f05e1ef [formerly b2edf70f6d9404ed4963ee874c3e03d13bf49303]]
Former-commit-id: 844f05e1ef
Former-commit-id: fe3963680d
This commit is contained in:
Richard Peter 2014-02-04 12:22:19 -06:00 committed by Gerrit Code Review
commit 57402adccf
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/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();
}
}
}

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
* 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");

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
* 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();
}
}