-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Ingest Manager] When an integrations is uninstalled we should invalidate the cache #68890
Comments
Pinging @elastic/ingest-management (Team:Ingest Management) |
@skh Can you take a look to see if this still an issue? The problem was that if you ever installed a package and you try to install a new one If would pick up the cached version instead of the newly available package form the registry. |
I've tested this with a locally running package registry, with a package Version After adding the new package, only the registry was restarted, not kibana. UIInstalling the package, then adding a new version of a package and restarting the package registry results in the following UI behaviour:
I believe the UI is behaving correctly. It does silently switch to a newer version in one case (written in bold above), but I think that happens intentionally. APIInstalling the package, then adding a new version of a package and restarting the package registry results in the following API responses:
Overall, I think the API behaves correctly as well. @ph do you remember what you did exactly to trigger this behavior? |
Closing, please reopen if the problem can still be reproduced. |
@skh The question was more about installing the same version multiple times. So if I install |
@ruflin Thanks for the added information, reopening. |
@ruflin would it be acceptable to make the cache deletion happen when I'm not sure it's beneficial to always remove the package from the cache, as packages in the registry shouldn't change their content without a version bump. |
I personally prefer to have it on uninstall as I think we should "clean up" the system if a package is uninstalled. Having it on I don't see much use of keeping the cache around if a package is removed. If someone tried out 10 packages and then only works with 2, he should not still need memory for the other 8. |
@jfsiii Great to have it. Would be nice to have a follow up PR, it will help package development. |
@jfsiii Thanks! I'll open a PR to use it. |
If integration is uninstalled, Kibana wipes also the cache so it can be freshly installed again from the registry (which might contain a new version).
The text was updated successfully, but these errors were encountered: