agustaf9 opened a new issue, #3240:
URL: https://github.com/apache/jena/issues/3240

   ### Version
   
   5.3.0
   
   ### What happened?
   
   Deleting the datastore from the UI deletes the config file, but not the 
database which  I have come to learn is as designed, according to this: 
https://issues.apache.org/jira/browse/JENA-1481
   
   This post mention when removing a dataset via the API or the UI, it should 
close all open files associated with the database: 
https://issues.apache.org/jira/browse/JENA-1586
   
   When I try to remove the database folder I get: `rm: cannot remove 
'test-dataset/Data-0001/.nfs000000000024002c00000428': Resource busy`
   
   Steps to recreate:
   1. Create new dataset `test-dataset` via the UI
   2. Remove the dataset via the UI
   3. In the "fuseki/databases" dir run `rm -rf test-dataset/`
   
   I saw there is a longstanding java bug with windows, so I should note I am 
running in the `eclipse-temurin:22-jre-alpine` docker container.
   
   ### Relevant output and stacktrace
   
   ```shell
   fuseki-64c9f6bfdb-4x689:/fuseki/databases$ rm -rf test-dataset/
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024002c00000428': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs00000000002400150000042a': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024002000000433': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024001c00000423': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024001000000436': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs00000000002400240000041c': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024000f0000041b': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024002200000421': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024001400000427': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs00000000002400210000043d': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024002800000418': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024000b0000042b': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024002500000426': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024001a0000042f': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024002d00000430': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024001900000420': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024001d0000041f': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024000d0000043a': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024001b00000422': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024000c0000042d': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024002e0000042c': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs00000000002400310000041d': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024001100000432': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024002700000438': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs00000000002400130000041e': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024001600000434': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs00000000002400170000043c': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024001200000439': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs00000000002400180000043b': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024002900000435': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024002b00000417': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024000e00000431': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024002300000419': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024001e0000043e': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024002f0000042e': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024002a00000425': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024003000000424': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024001f00000429': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs000000000024003200000437': 
Resource busy
   rm: cannot remove 'test-dataset/Data-0001/.nfs00000000002400260000041a': 
Resource busy
   ```
   
   ### Are you interested in making a pull request?
   
   None


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to