-
Notifications
You must be signed in to change notification settings - Fork 65
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
clean whipe out all bundle data #203
Comments
Looking at https://docs.osgi.org/specification/osgi.core/8.0.0/framework.lifecycle.html#i1236436 I also can't find an indication that the data there is considered only a cache ("private persistent storage area"). |
The bundle data area lives with the installation of a bundle. When a bundle is no longer installed then its bundle data area must also be removed. When using |
Given that P2 / SimpleInstaller sometimes mess up things and we recommend to call clean it seems there might then be an option required to flush cached state but retain the bundle data (e.g. by only clear items that are really uninstalled, e.g. bundle location has changed or version or symbolic name) and better document that this not really clears cached data (what one usually reads as "data that can be recovered from other sources") but wipes out even persistent data. |
This will not be how other compliant frameworks behave and I think it would violate the specification. Bundle data is associated with an installed bundle which has a location + bundle ID (long) value associated with it. When doing -clean we could have the same bundle locations, but the bundle ID may very likely change from the previous state we cleaned. |
So |
Lines 334 to 337 in fa2001e
This is because other things in Eclipse pay attention to the |
This issue has been inactive for 180 days and is therefore labeled as stale. |
This issue has been inactive for 180 days and is therefore labeled as stale. |
This issue has been inactive for 180 days and is therefore labeled as stale. |
On the help page it says:
In fact this does not really clear out only cached data but also the "persistent bundle area" a bundle get when calling
org.osgi.framework.BundleContext.getDataFile(String)
this is also where the configuration admin usually stores data, so also all user-configuration get wiped when using-clean
Currently this won't be noticed much as eclipse uses it own "preferences" that are stored in the workspace and Plugins are using
Platform.getStateLocation(bundle)
, but this is of course not an option for "pure" OSGi components that don't want to bind to Eclipse specific things.The text was updated successfully, but these errors were encountered: