Github user kchilton2 commented on a diff in the pull request:
https://github.com/apache/incubator-rya/pull/272#discussion_r168274700
--- Diff:
extras/rya.streams/api/src/main/java/org/apache/rya/streams/api/queries/InMemoryQueryRepository.java
---
@@ -243,8 +274,68 @@ private void updateCache() {
it.close();
}
} catch (final QueryChangeLogException e) {
- LOG.error("Could not close the " +
CloseableIteration.class.getName(), e);
+ log.error("Could not close the " +
CloseableIteration.class.getName(), e);
}
+
+ log.trace("updateCache() - Exit");
+ }
+ }
+
+ @Override
+ protected void runOneIteration() throws Exception {
+ log.trace("runOneIteration() - Enter");
+ lock.lock();
+ try {
+ updateCache();
+ } finally {
+ lock.unlock();
+ }
+ log.trace("runOneIteration() - Exit");
--- End diff --
Yep, done.
---