ShannonDing commented on PR #11619: URL: https://github.com/apache/rocketmq/pull/11619#issuecomment-7213685965
The Windows/JDK 8 failure at `4214980` is caused by the new directory-sync implementation, rather than a test timeout. The completed failing job is [here](https://github.com/apache/rocketmq/actions/runs/45850489715/job/140376578210); a newer rerun of the same SHA was still running when checked. The log shows: ```text java.nio.file.AccessDeniedException: <temporary Store directory> HistoryIncident.forceDirectory(HistoryIncident.java:97) HistoryIncident.firstDecision(HistoryIncident.java:151) ``` [`forceDirectory()`](https://github.com/apache/rocketmq/blob/4214980c94614b6b724273ba5f919b225014aa18/store/src/main/java/org/apache/rocketmq/store/ha/autoswitch/HistoryIncident.java#L96-L100) opens a directory with `FileChannel.open(directory, READ)`, which fails on this Windows runtime before `force(true)` is reached. There is also a persistent failure-state consequence: [`firstDecision()`](https://github.com/apache/rocketmq/blob/4214980c94614b6b724273ba5f919b225014aa18/store/src/main/java/org/apache/rocketmq/store/ha/autoswitch/HistoryIncident.java#L146-L177) creates `ha-history-received`, syncs its parent directory, and only then writes the decision. The exception leaves an empty journal; the log subsequently shows record validation failing in `checkedFields()` during replay. This path is used by normal handshakes with existing epoch history too, not only by explicitly authorized destructive recovery. Please make the persistence strategy platform-aware, explicitly handle interrupted journal creation, and add Windows coverage for a healthy handshake and restart/reconnect after journal creation fails. Simply swallowing the sync error or skipping Windows tests would not establish the intended crash-safety guarantee. If durability guarantees differ by platform, the implementation and recovery documentation should state and enforce those limits. The failing Store run reports 147 tests, 1 failure and 67 skipped; the skipped tests are not passing coverage. -- 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]
