Description of problem:
First, I build and deploy any project which will create a deployment unit. However, when I shutdown the application server and start it over, the deployment unit is not in the list of deployment units.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Build and deploy any example project (repository1/project1)
2. See the deployment unit is really created
3. Restart the application server
4. See the deployment unit is missing in Deploy/Process Deployments
most likely it's because you run with in memory db and that's why it's gone with all its data including information about deployments. Previously deployments were stored in system git repo though it causes complexity when it comes to handling cluster etc so db storage was taken as the preferred one.
So either run on db that will preserve its state between server restarts or set 'org.kie.git.deployments.enabled' system property to true to store them in system git repo as well.
Could you please get back to me if above is correct?
you are absolutely right. It is caused by the in memory h2 database and when I use the system property the git repository is used instead as it used to be.
Do we have any BZ for the requirement to move the deployments from git repository to database? I believe this change should be documented.
thanks for confirmation.
there is no direct bz about that change but it was introduced as part of EJB/services work as without db storage it would require always to be setup with zookeeper and helix which complicates the runtime architecture especially that it does sync only system.git as for runtime there won't be anything else.
So as you can see it was not removed but was disabled by default to rely on db by default. And can be enabled any time, same db storage can be disabled.
+1 for documenting that although it is backward compatible meaning first time it will run on new setup it will read up from system.git and deploy into runtime which will result in db store. At the same time it will remove it from system git to clean it up completely.
Hope it makes sense...
Maciej, thank you for the detail explanation. It makes sense and so I filed BZ 1194191 to document this change.
I close this BZ since deployment units work as expected.