Github user aledsage commented on a diff in the pull request:
https://github.com/apache/incubator-brooklyn/pull/617#discussion_r30583128
--- Diff:
core/src/main/java/brooklyn/entity/rebind/persister/AbstractBrooklynMementoPersister.java
---
@@ -110,6 +115,11 @@ public void delta(Delta delta,
PersistenceExceptionHandler exceptionHanlder) {
memento.updateEnricherMementos(delta.enrichers());
memento.updateCatalogItemMementos(delta.catalogItems());
}
+
+ @Override
+ public void queueDelta(Delta delta) {
+ log.warn("Legacy persister ignoring queued delta: "+delta);
--- End diff --
Perhaps `throw new IllegalStateException("Not supported; use
"+BrooklynMementoPersisterToObjectStore.class)`.
With this code, we'll log and ignore the requested delta, so the delta will
never be applied. Better to fail than to do that, I think (unless the delta
really is empty!)
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---