Issue #2769 Removed aggressive Hibernate session flushes

Change-Id: Idaeb3ecf0a62cc586ed34525260034cd89e96216

Former-commit-id: 5de996ac4a [formerly 3f4b92fffb] [formerly 1691c5a3ff] [formerly 5de996ac4a [formerly 3f4b92fffb] [formerly 1691c5a3ff] [formerly fc589ed84d [formerly 1691c5a3ff [formerly 0440395a596d13bf8b4f1dda4857c185c6c8afa5]]]]
Former-commit-id: fc589ed84d
Former-commit-id: 1e0a1a6df8 [formerly 20d26dc5a0] [formerly b3183ec5423ee6e72bab494f9fa0adc8a517ca47 [formerly cdaa7e32b4]]
Former-commit-id: f65125400771d978a456076f39fe1ff9b3529402 [formerly 01def4be4a]
Former-commit-id: d4adefdad8
This commit is contained in:
Benjamin Phillippe 2014-02-04 10:24:11 -06:00
parent b016112b8f
commit af03234dcc
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();
}
}