Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2064

Add ability to facilitate rolling upgrade without CDI bean loss

    Details

      Description

      In a clustered environment, during application upgrades, the users should not lose their sessions, or lose their Weld/CDI beans. Currently, Weld beans are indexed by bean archive name, which makes it impossible to do rolling upgrades on the same application server.
      This is because you cannot deploy two different versions of the application and have CDI/Weld beans migrate from one to another, because they are indexed by name.

      My proposed patch will strip the application version suffix from the bean archive name,
      so Weld/CDI beans will be index by the "base name" that doesn't contain version information, as opposed to being indexed by full bean archive name name, which includes version information.
      Proposed delimiter is double dot ("..")

      Example: deploy app with name my_website..20151103-prod
      This will strip the suffix, and Weld/CDI beans will be indexed by "my_website" only.
      This way, when deploying my_website..20151106-prod, all CDI beans in a cluster will be able to migrate to the new version, and users won't have session or bean state loss.

      Pull request coming shortly.

      Related issue:
      https://github.com/payara/Payara/issues/455

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                lprimak Lenny Primak
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: