Open xsalefter opened 7 months ago
It sounds like this error (not quite the same though: version isn't null):
java.lang.IllegalStateException: Plugin aviate-plugin version 1.0.12 cannot be started because the version 1.0.12-3368e6a already exists in the registry (state = 32)
can happen if the user installs the same plugin with the same version. This should be gracefully handled.
Pierre comment above missing the link.
Furthermore, I can reproduce this:
Note that point 3 and 4 should be called simultaneously.
Also, from my post above, calling point 1 and 2 simultaneously:
Causing the plugin not starting. This can be an issue for client app, where it expect the plugin should be started right after downloaded.
But then again, I have no idea how we handle this properly (since AFAIK, plugin uses PersistantBus
and just return 202 immediately)
There's random exception thrown when installing plugin.
This might have something to do with calling various
/nodesInfo
endpoints (install, start, check at almost the same time) and there's race condition? Need more investigation when this actually happened.