Windows: interface recorded as 'Get-Partition : Invalid property' (PowerShell stderr captured as value)
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 55/100
Rechercherichtung
Start with jdm-core/src/main/java/jdiskmark/UtilOs.java, especially getDriveInterfaceWindows and runPowerShellOneLiner, then inspect the caller in jdm-core/src/main/java/jdiskmark/Util.java around line 440. Trace how PowerShell output and failures are handled, and check the Windows tests if present. Done means failed commands no longer store error text as drive data, with the proposed fallback and attribute validation covered.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Anomaly
Benchmark: https://test.jdiskmark.net/all_benchmarks/benchmark/6b08327a59d708ebcc3a71ce
The Interface field was uploaded as Get-Partition : Invalid property. It should be a bus type such as NVMe.
| Field | Value |
|---|---|
| Drive Model | Lexar SSD NM790 1TB |
| OS | Windows 11 Dev (build 27982), Insider |
| Processor | Intel Core i5-6500 |
| JDK | 25.0.1 |
| Client | v0.9.1 |
Root cause (client)
UtilOs.getDriveInterfaceWindows() runs:
Get-Partition -DriveLetter X | Get-Disk | Select-Object -ExpandProperty BusType
with pb.redirectErrorStream(true). It returns the first non-empty line of the combined output. When PowerShell fails, the first line is the error header (Get-Partition : Invalid property), and that text is stored as the interface.
runPowerShellOneLiner() has the same pattern. That means getBusTypeWindows, getFilesystemWindows and getSectorSizeWindows can also return PowerShell error text instead of null. (getPhysicalDriveNumberWindows is not affected because it checks the value against \d+.)
Environmental trigger
Invalid property is a CIM error from the Storage Management WMI provider (root\Microsoft\Windows\Storage, class MSFT_Partition). The likely causes:
- A broken or changed Storage WMI provider on the Insider Dev build 27982
- A corrupt or unregistered Storage WMI repository on that machine
- A third-party or unusual NVMe driver for the NM790 that the Storage provider cannot enumerate
None of these are JDiskMark bugs. But the client should not record the error text as data.
Proposed fix
- Do not merge stderr into stdout in the Windows PowerShell helpers (drain stderr separately, or discard it). Also check the exit code: on failure, return
null. - Optionally add
-ErrorAction Stopand validate the output. For example, acceptBusTypeonly if it matches a known value or^[A-Za-z0-9 ]+$and does not contain:. - Add a fallback when
Get-Partitionfails: useGet-CimInstance Win32_DiskDrive/MSFT_PhysicalDiskBusType, the same waygetPhysicalDriveNumberWindowsalready falls back to WMI. - Portal: consider cleaning up or flagging existing records whose interface contains
Get-Partitionor:.
TODO
Client (jdm-java)
- Stop merging stderr into stdout in
getDriveInterfaceWindowsandrunPowerShellOneLiner; check the exit code and returnnullon failure - Validate attribute values (interface, filesystem, sector size) before storing them; reject values containing
:or known PowerShell error patterns - Fall back to
MSFT_PhysicalDisk/Win32_DiskDriveBusTypewhenGet-Partitionfails - Detect preview / Insider OS builds (Windows
DisplayVersion=Dev, Canary / Dev build numbers) and include a flag in the upload payload - Capture these failures for the diagnostic log upload (#272)
Portal (jdm-web) — tracked in JDiskMark/jdm-web#89
- Filter benchmarks with invalid interface / attribute values out of leaderboards and aggregate stats
- Filter / tag benchmarks from preview / Insider OS builds, excluded by default with a toggle to include them
- Show a warning badge on flagged benchmark detail pages
- Clean up or flag existing bad records, including
6b08327a59d708ebcc3a71ce
Related
- #272 Upload diagnostic error logs to community portal
- JDiskMark/jdm-web#89 Diagnostic log ingestion and anomalous benchmark filtering
References
jdm-core/src/main/java/jdiskmark/UtilOs.java:getDriveInterfaceWindows,runPowerShellOneLinerjdm-core/src/main/java/jdiskmark/Util.java: caller around line 440
- Vorherrschende Sprache
- Java
- Sterne
- 6
- Forks
- 6
- Ø Merge
- 10 Std. 11 Min.
- Gemergte PRs (30 T.)
- 12
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus JDiskMark/jdm-java
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement linux
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
Maintainer antworten meist innerhalb von 1 Tag
-
documentation linux
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement linux
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug linux
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 52/100
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in JDiskMark/jdm-java
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
bloxbean/yaci-store#1445 ·
Maintainer antworten meist innerhalb von 1 Tag
-
图片灯箱过长的话底部carousel滑动没有惯性Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
-
Spare PermissionOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 63/100
Etar-Group/Etar-Calendar#2234 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[BUG] MCP resources-as-tools drops invocation context when listing templatesEvtl. vergeben @CryoThrust hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
langchain4j/langchain4j#7320 ·
Maintainer antworten meist innerhalb von 1 Tag