SuperMetaStream opened a new issue, #2428: URL: https://github.com/apache/uniffle/issues/2428
### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) ### Search before asking - [x] I have searched in the [issues](https://github.com/apache/incubator-uniffle/issues?q=is%3Aissue) and found no similar issues. ### Describe the flaky test ### What happened The unit test `LocalStorageManagerTest.testGetLocalStorageInfo` failed during execution due to an unexpected assertion: ```bash [ERROR] Failures: [ERROR] LocalStorageManagerTest.testGetLocalStorageInfo:334 expected: \<SSD\> but was: \<HDD\> ``` The test attempts to detect the storage type (SSD or HDD) using the Linux command: ```bash lsblk -no ROTA /dev/<device-name> ``` However, the result differs from the expected StorageMedia type, possibly due to: - ROTA value not correctly returned or parsed - Ambiguity in df/lsblk output - Device name resolution mismatch - Virtualized or CI environments not reliably reporting SSD status ### How to reproduce Run the test on a Linux machine (especially with NVMe or SSD mount) where the underlying disk is SSD: ```bash mvn test -Dtest=LocalStorageManagerTest ``` ### In my case: - Mount path: /home/ssd1 - Device: /dev/nvme0n1 - Expected: SSD - Detected: HDD ### Environment - OS: Linux - Disk: NVMe SSD - Java: 1.8 - Maven: 3.6+ - Uniffle version: 0.11.0-SNAPSHOT - Test path: org.apache.uniffle.server.storage.LocalStorageManagerTest ### Actions URL Just to clarify: the failure does **not** happen in GitHub Actions. It occurred **locally on my development machine** during `mvn test`, specifically in `LocalStorageManagerTest.testGetLocalStorageInfo`. This test expects the disk to be detected as `SSD`, but it was detected as `HDD` on my environment (`/dev/nvme0n1` mounted at `/home/ssd1`), leading to an assertion failure. So there's no GitHub Actions link I can provide — it passed in CI, but fails locally due to disk detection logic. ### Are you willing to submit PR? - [x] Yes I am willing to submit a PR! -- 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]
