Skip to content

Bundle/catalog upgrade headers to specify upgrade maps#872

Merged
asfgit merged 9 commits intoapache:masterfrom
ahgittin:bundle-upgrade-actually-remove
Nov 1, 2017
Merged

Bundle/catalog upgrade headers to specify upgrade maps#872
asfgit merged 9 commits intoapache:masterfrom
ahgittin:bundle-upgrade-actually-remove

Conversation

@ahgittin
Copy link
Copy Markdown
Contributor

For indicating that bundles or types are valid upgrade targets for other items.

This does all the setup and tests (WIP) for when we actually apply upgrades -- in following PRs. This does not apply any of the upgrade info it collects! But it does parse the headers and test them in lots of variants, and lots of tidies up to related recent code.

The first of the follow-on PRs will apply upgrades if a type is not found (eg because we removed it), necessary for a clean update path. After that will look at letting user trigger updates.

As this PR mainly affects test code it should be fairly safe, even if quite involved in places. I suggest it isn't necessary to solve every corner case just yet (though I'm not aware of any that aren't), so long as the main upgrade paths are working (which will usually be the default * - the other complexity shouldn't often be needed.)

Some minor changes to type lookup, to accept OSGi-equivalent versions, and give a canonical order; also to node state, being more informative about saying it is up. Major changes to some of the tests, esp around the REMOVE headers in #866, to allow the same set of tests to run in HA Hot Standby or Master configuration, and to speed up tests (reuse osgi except in Integration).

refactor using fixtures to run more tests in both terminate-then-rebind and standby-promote modes,
without duplicating assertions
…e mgmt.getNodeState()

and make reused OSGi framework the default (much faster) with more tests
…HA transition clearing

fix recent rebind header tests which i forgot to test in previous, some subtle HA behaviours,
but now all fixed and documented.

need to clear type registry as part of other clears on HA promotion fail
tests with comments ready for ugprades

(type registry lookup still prefers exact non-osgi version match but will use osgi)
Copy link
Copy Markdown
Contributor

@robertgmoss robertgmoss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No obvious errors in the code. LGTM

ahgittin added a commit to ahgittin/brooklyn-server that referenced this pull request Nov 1, 2017
@asfgit asfgit merged commit c840fbe into apache:master Nov 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants