Jean-Louis Monteiro created AMQ-9856:
----------------------------------------

             Summary: KahaDB Journal move fails on Windows
                 Key: AMQ-9856
                 URL: https://issues.apache.org/jira/browse/AMQ-9856
             Project: ActiveMQ
          Issue Type: Bug
          Components: KahaDB
            Reporter: Jean-Louis Monteiro
            Assignee: Jean-Louis Monteiro
             Fix For: 6.3.0


On Windows, files cannot be renamed/moved while open by another process. The 
simplest and most appropriate fix is to skip this test on Windows where file 
locking makes it inherently unreliable.


{code:java}
java.io.IOException: Failed to move 
target\activemq-data\localhost\KahaDB\db-6.log to 
D:\a\activemq\activemq\activemq-kahadb-store\target\activemq-data\localhost\KahaDB\data-archive
 - target\activemq-data\localhost\KahaDB\db-6.log -> 
D:\a\activemq\activemq\activemq-kahadb-store\target\activemq-data\localhost\KahaDB\data-archive\db-6.log:
 The process cannot access the file because it is being used by another process
        at org.apache.activemq.util.IOHelper.moveFile(IOHelper.java:200)
        at 
org.apache.activemq.store.kahadb.disk.journal.DataFile.move(DataFile.java:107)
        at 
org.apache.activemq.store.kahadb.disk.journal.Journal.forceRemoveDataFile(Journal.java:833)
        at 
org.apache.activemq.store.kahadb.disk.journal.Journal.removeDataFiles(Journal.java:812)
        at 
org.apache.activemq.store.kahadb.MessageDatabase.checkpointUpdate(MessageDatabase.java:1701)
        at 
org.apache.activemq.store.kahadb.MessageDatabase.checkpointCleanup(MessageDatabase.java:1035)
        at 
org.apache.activemq.store.kahadb.KahaDBStore.checkpoint(KahaDBStore.java:1481)
 {code}
 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to