+1

We can implement this in the ADC Checkout plugin and in an event plugin for
ApplicationSignupRemoval.  Are there any concerns regarding server restarts
after resetting the tenant space?


Regards,
Chamila de Alwis
Committer and PMC Member - Apache Stratos
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com



On Fri, Nov 27, 2015 at 6:34 AM, Isuru Haththotuwa <isu...@apache.org>
wrote:

> Hi Devs,
>
> Currently for a multiTenant Application (multiTenant=true), when a signup
> is removed, all artifacts which are in the local repository path will be
> deleted from the file system. But there are some cases where the runtime of
> the cartridge instance depends on some of the artifacts which were
> originally there, and without those artifacts, the cartridge instance
> runtime would not function properly. I suggest the following to handle this:
>
>
>    1. Prior to the first clone, take a backup of the artifacts in the
>    local repository path to a temporary location
>    2. When the signup is removed, clean all the artifacts which had been
>    cloned to the local repository path location (from the git repository which
>    was provided when signing up), and restore the artifacts (copy them back
>    from the backup location to local repository path)
>
> This will ensure the state of the instance after removal of the signup is
> equivalent to the state before the signup was created. WDYT?
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* <http://wso2.com/>*
>
>
>

Reply via email to