This is an automated email from the ASF dual-hosted git repository.
jinrongtong pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git
The following commit(s) were added to refs/heads/develop by this push:
new 93888428cc [ISSUE #9899] Forbid windows sync directory (#10057)
93888428cc is described below
commit 93888428cc8974ad4e03c6ec93d241d3b2dbac1e
Author: gaoyf <[email protected]>
AuthorDate: Mon Feb 2 15:13:13 2026 +0800
[ISSUE #9899] Forbid windows sync directory (#10057)
---
common/src/main/java/org/apache/rocketmq/common/MixAll.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/common/src/main/java/org/apache/rocketmq/common/MixAll.java
b/common/src/main/java/org/apache/rocketmq/common/MixAll.java
index efde29a891..70e82230b1 100644
--- a/common/src/main/java/org/apache/rocketmq/common/MixAll.java
+++ b/common/src/main/java/org/apache/rocketmq/common/MixAll.java
@@ -249,7 +249,9 @@ public class MixAll {
if (!Files.isDirectory(dir)) {
throw new NotDirectoryException(dir.toString());
}
-
+ if (isWindows()) {
+ return;
+ }
try (FileChannel fc = FileChannel.open(dir, StandardOpenOption.READ)) {
fc.force(true);
}