Promotion and recovery
- Determine which workloads a release changes, which versions can coexist and what rollback requires.
Diagram phase
Select a component to trace its direct connections. Drag to pan · Ctrl + wheel or pinch to zoom.
Reading
- Pull and stage prepares release files and target configuration. Install or upgrade applies the staged chart.
- A previous chart can restore earlier workload references. Pending upload messages, changed data and completed partner calls still need recovery.
- Bind the artifacts, configuration and durable-state contracts together. Rehearse a shared-module change that leaves the application EAR unchanged.
- Gate traffic and background ownership separately. New readers must handle old backlog before a new writer emits its first envelope.
- Retain an old release only while its mapper, input files and capacity can recover service. Reconcile uncertain CP outcomes by their original identities.
How an LCM build reaches a target cluster
Build the selected components
- The Jenkins V2 build tooling generates Gradle tasks from project shape and archive descriptors. A Java module can supply a JAR, a web project a WAR, and an application project an EAR.
- LoanTransaction gives a concrete membership check. Its EAR descriptor names the transaction WAR and the LCM health WAR. Inspect both entries in the built EAR before image packaging.
- Library selection follows the application classpath and library membership. A shared JAR can change the payload and class loading of multiple consumers while their WAR files stay byte-identical.
Resolve the image set
- The image builder gathers application archives and libraries through LIB_NAME, CLASSPATH and APP_INCLUSION. Each selected image has its own version.
- Each cluster composition selects the server base, application and shared module/infra payloads it needs. The FileUpload and LoanTransaction targets can select different inputs.
- Trace a change twice: first from source to the archive or module image containing it, then from that image to each cluster composition selecting it.
- A missing selection or the same class arriving from two inputs can survive compilation. Compare required members with the unpacked EAR and assembled classpath.
Worked example · required archive members and image consumersjson
{
"kind": "IllustrativeReleaseMembership",
"release": "R2",
"archiveContracts": {
"LoanTransaction.ear": {
"requiredModuleRoles": ["loan-transaction-web", "lcm-health-web"],
"checks": ["unpack the built EAR", "read application.xml", "resolve both declared modules"]
}
},
"imageRoles": {
"server-base": "runtime-B1",
"transaction-application": "application-A1",
"shared-module": "module-M2"
},
"releaseProducts": ["chart-package", "helm-release-carrier"],
"case": {
"change": "module-M1 becomes module-M2 while application-A1 stays identical",
"impact": "retest every target selecting module-M2, even with an unchanged EAR",
"blockWhen": ["a required WAR is absent", "two selected payloads supply an incompatible class", "the chart still selects module-M1"]
},
"identityRule": "B1, A1 and M2 are teaching labels. A release record uses the actual immutable artifact hashes and image digests."
}
Distinguish the two release artifacts
- Image creation builds and pushes images and records selected versions. Generated cluster configuration consumes the version references.
- Chart packaging produces a chart archive and repository index. Release packaging also produces a separate Helm-release image and release listing for staging.
- The server runs from the workload image set. The Helm-release image carries delivery material for release tooling.
| Change | Find the affected consumer | Acceptance check |
|---|---|---|
| Health WAR change | EARs that declare that web module | Unpack the EAR and verify both application and health module membership |
| Shared library change | Images/classpaths carrying the library, then clusters selecting them | Resolve conflicting classes and run affected consumer contracts |
| Cluster input change | Targets selecting the new app or shared image | Compare rendered references and target configuration even if Java source is unchanged |
What must be true before a release can serve
What must be true before a release can serve
Materialize the release for the target
- PullRelease retrieves and stages release material. The deployment scripts apply target-specific substitutions and chart metadata, then choose Helm install or upgrade.
- Check the rendered workload references against the images available in the target registry. A substituted environment value can change a datasource, destination or selected artifact without a Java rebuild.
- Kubernetes and WebLogic must converge after Helm submits the desired configuration. Validate the intended managed servers, deployment targets and effective assembled library set.
Roll out a compatible writer
- Proposed. Keep the current build tools. Generate a release manifest from required versus assembled archive membership, immutable image identities, chart/configuration and supported DB and message contracts.
- Begin with a report of missing inputs, classpath collisions and affected consumers. Make it a blocking gate after producer and consumer owners validate the mapping.
- Shadow the new reader or validator on a sample without creating offers or contacting Customer Power. Before enabling a new writer, fence or drain the old owner at an agreed work boundary.
- Confirm foreground and background targets separately. A ready LoanTransaction endpoint cannot certify FileUpload work, message-driven consumers or provider outcomes.
Choose rollback or forward recovery
| Failure | Before changing the target | Recovery decision |
|---|---|---|
| A required shared image is missing | Stop the promotion at artifact validation | Retain the active release and publish the missing compatible set |
| R2 writes an envelope R1 cannot read | Stop new R2 writes and retain those messages | Drain with compatible consumers or deploy a tested upcaster before transferring ownership |
| Database projection or shared data changes | Exercise fresh and reused R1/R2 connections and mixed-version writes | Route back only while R1 can still read the data and mapper shape |
| Customer Power times out after receiving a call | Retain the original operation/stage identity and hold the dependent effect | Query the provider contract or reconcile. A previous application version cannot reverse a remote effect |
- Keep the previous chart, application and dependency image digests, configuration, compatible database projection and usable worker capacity until the rollback window closes.
- Two live generations may need extra DB sessions and CPU. If there is no headroom, use a smaller cohort or a planned drain before transferring ownership.
Worked example · release admission and rollback decisionsjson
{
"kind": "IllustrativeReleaseRecovery",
"previousRelease": "R1",
"candidateRelease": "R2",
"cases": [
{
"when": "R1 is still serving and R2 fails archive verification",
"decision": "keep R1 selected; rebuild or restage the complete compatible R2 set"
},
{
"when": "an R2 worker wrote V2 messages and an R1 worker can read only V1",
"decision": "pause affected intake, fence the R2 writer and drain V2 with a compatible consumer",
"rollbackGate": "allow R1 ownership only after remaining durable input is readable by R1"
},
{
"when": "R2 used the candidate database edition",
"decision": "test R1 with fresh and reused connections against data written during the overlap",
"rollbackGate": "retain or restore the compatible datasource, mapper and admission route"
},
{
"when": "a Customer Power response was lost after request dispatch",
"decision": "preserve the same operation and stage, then reconcile its authoritative outcome",
"rollbackGate": "record which release owns recovery; switching releases does not reverse the remote action"
}
]
}
Check session edition and pool turnover
Resolve an unknown campaign outcome
Transfer ownership of unfinished file work
Worked example · members bound by the release manifestjson
{
"kind": "IllustrativeReleaseMembership",
"release": "R2",
"archiveContracts": {
"LoanTransaction.ear": {
"requiredModuleRoles": ["loan-transaction-web", "lcm-health-web"],
"checks": ["unpack the built EAR", "read application.xml", "resolve both declared modules"]
}
},
"imageRoles": {
"server-base": "runtime-B1",
"transaction-application": "application-A1",
"shared-module": "module-M2"
},
"releaseProducts": ["chart-package", "helm-release-carrier"],
"case": {
"change": "module-M1 becomes module-M2 while application-A1 stays identical",
"impact": "retest every target selecting module-M2, even with an unchanged EAR",
"blockWhen": ["a required WAR is absent", "two selected payloads supply an incompatible class", "the chart still selects module-M1"]
},
"identityRule": "B1, A1 and M2 are teaching labels. A release record uses the actual immutable artifact hashes and image digests."
}