Felix FileInstall does not detect removed files in the deploy folder in Solaris OS.
Issue
- We use the hot deployement mechanism of JBoss Fuse to deploy our bundles. We ran into issues with the new implementation of the fileinstall bundle using java.nio to detect modification in the deploy folder (org.apache.felix.fileinstall.internal.WatcherScanner.java). This new implementation does not always detect removed files on Solaris & AIX platforms.
-
Steps to reproduce the issue:
- Open the Karaf Console
- Copy a bundle in the deploy folder
- Check with the Karaf Console that the bundle is active
- Delete the bundle from the deploy folder
- Sometimes, you will see in the Karaf console that the bundle is still there and has not been uninstalled.
-
Hopefully, there is a way to revert back to the old implementation (org.apache.felix.fileinstall.internal.Scanner.java) by setting the property "felix.fileinstall.disableNio2=true" in the file org.apache.felix.fileinstall-deploy.cfg. That is the workaround that we implemented to solve this issue.
Environment
- Red Hat JBoss Fuse
- 6.2.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
