New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load class because the bundle wiring is no longer valid #7132
Comments
Maybe running a potentially long running operation on application stop, is a bad idea. If I had lib-app I would not need to do that in this instance. |
@GlennRicaud told me to assign this one to you @rymsha |
The question is: Is the disposer supposed to be blocking or not? |
Unfortunately workaround idea to send a event didn't work either :( 2020-02-28 11:06:00,158 ERROR c.e.x.c.impl.app.ApplicationRegistry - Error invalidating application [ScriptRuntimeFactoryDelegate] |
There is no fix until #7799 and #7842 are fixed. Long running and resurrecting tasks (the ones which resubmit themselves) will behave poorly during application redeploy. Strictly speaking it will be always so by their nature. For long running tasks workaround is to not release a new version during their work. Also split them into smaller/granular tasks. For resurrecting ones - use cron instead. |
Sending a single event, shouldn't really be a long running or resurrecting task. Is it a task at all? I'm not using the task API. Perhaps you are saying that the disposer is a task? |
#7978 may make it even worse. But it is a tradeoff. We currently can't have a reliable disposer and guarantee stable redeploy.
|
starting from 7.2.3 disposers should run on a ACTIVE app (before it was STOPPING and potentially STOPPED - which would cause the issue). Disposers must be avoided still. |
I have some code in main.js that creates a node on startup,
and some code in main.js disposer that deletes a node in application stop.
When you start and stop an installed app this works fine.
However when you deploy a new version of the app it looks like the disposer code fail because the app has already been removed.
The text was updated successfully, but these errors were encountered: