flange-ipb commented on issue #2254:
URL: https://github.com/apache/jena/issues/2254#issuecomment-1934265903

   A simple idea for improving this situation:
   - in the process of compaction, write the dataset into a directory with a 
temporary name that won't be recognized during Fuseki's startup (e.g. 
`Data-0002-tmp` instead of `Data-0002`)
   - when compaction is finished, rename the directory
   
   Assuming the original (`Data-0002-tmp`) and the target (`Data-0002`) 
directories are on the same file system the rename/move operation could* be 
atomic.
   
   *This is platform-dependent, see for instance 
[File.renameTo()](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/File.html#renameTo(java.io.File)).


-- 
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