GitHub user aledsage opened a pull request:
https://github.com/apache/brooklyn-server/pull/966
Persistence efficient: unchanged and transient attributes
Most of the changes are to allow us to write tests, and the tests
themselves. The actual important production-code changes is really just two if
statements wrapping the calls to `onAttributeChanged(attribute)` and
`onChanged(entity)`!
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/aledsage/brooklyn-server
persistence-efficient-transient-attributes
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/brooklyn-server/pull/966.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #966
----
commit cc6133f83772deda532ae0bed7f5130e00230a0a
Author: Aled Sage <aled.sage@...>
Date: 2018-05-24T14:53:33Z
Attributes with PersistenceMode.NONE: donât re-persist
commit 01a5f197c8246df3d43073b55bc45ba60d9f00d5
Author: Aled Sage <aled.sage@...>
Date: 2018-05-24T14:54:03Z
Machine metrics: mark as non-persisted
commit 68d88ebde64ca03a2c808723a6a32df8c2e443c6
Author: Aled Sage <aled.sage@...>
Date: 2018-05-24T20:49:27Z
For tests, support RebindManager.hasPending()
Similar concept to waitForPendingComplete().
commit 62d7b967c49f35f45e97c8f6a650afdbc4f5a094
Author: Aled Sage <aled.sage@...>
Date: 2018-05-24T21:00:31Z
Set attributes with value unchanged: donât re-persist
----
---