Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Applying service packs to the product

Carbon From version 4.2.0 onwards, Carbon Kernel supports service packs. A service pack is a collection of patches in a single pack. It contains two elements:

...

  1. Copy the service pack file to the <PRODUCT_HOME>/repository/components/servicepacks/ directory. For example, the image below shows how a new service pack named servicepack001 is added to this directory. 
    The servicepacks directory with the new servicepack001 subdirectory, which contains servicepack_patches.txt and the lib subdirectory with the patch JAR files.
  2. Start your product. The following steps will be executed:
    1. Before applying any patches, the process first creates a backup folder named patch0000 inside the <PRODUCT_HOME>/repository/components/patches/ directory, which will contain the original content of the <PRODUCT_HOME>/repository/components/plugins/ directory. This step enables you to revert back to the previous state if something goes wrong during operations.

    2. The latest service pack in the <PRODUCT_HOME>/repository/components/servicepacks/ directory will be applied. That is, the patches in the service pack will be applied to the <PRODUCT_HOME>/repository/components/plugins/ directory.
    3. In addition to the service pack, if there are individual patches added to the <PRODUCT_HOME>/repository/components/patches/ directory, those will also be incrementally applied to the plugins directory. 

      Info

      The metadata file available in the service pack will maintain a list of the applied patches by service pack. Therefore, the metadata file information will be compared against the <PRODUCT_HOME>/repository/components/patches/ directory, and only the patches that were not applied by the service pack will be incrementally applied to the plugins directory. 

Applying individual patches to the product

...