[
https://issues.apache.org/jira/browse/AMQ-9856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18059098#comment-18059098
]
ASF subversion and git services commented on AMQ-9856:
------------------------------------------------------
Commit 726fa61811933e42933fb5af715ef1f01421b439 in activemq's branch
refs/heads/main from Jean-Louis Monteiro
[ https://gitbox.apache.org/repos/asf?p=activemq.git;h=726fa61811 ]
[AMQ-9856] Journal move fails on Windows (#1654)
* Exclude JournalArchiveTest from Windows builds to reduce test flakiness
* AMQ-9856 Implement non-blocking file deletion and async cleanup for Windows
* Enhance IOHelper: improve error handling in file operations and add unit
tests for rename functionality
> 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
> Priority: Major
> Fix For: 6.3.0
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> 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