Skip to content

Conversation

@vpstackhub
Copy link
Contributor

  • Add Boolean writeSyncEnabled to Benchmark entity
  • Set writeSyncEnabled in BenchmarkWorker (WRITE runs); null for READ
  • UI: render Mode as "Write*" when write-sync enabled (no new column)
  • Keep table layout unchanged; removed ad-hoc width overrides; added tooltip
  • Verified persistence across restarts; no behavior change for READ
  • Minor cleanup included
  • Minor formatting/indentation adjustments applied where needed

…; minor cleanup

- Add Boolean writeSyncEnabled to Benchmark entity
- Set writeSyncEnabled in BenchmarkWorker (WRITE runs); null for READ
- UI: render Mode as 'Write*' when write-sync enabled (no new column)
- Keep table layout unchanged; remove ad-hoc width overrides; add tooltip
- Verified persistence across restarts; no behavior change for READ
Copy link
Member

@jamesmarkchan jamesmarkchan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey val same behavior as before

lines 21 - 46 should be indented more by four spaces each

image

also lines 140-146 should be indented more by four spaces

image

generally a tell tale sign is we should see a closing bracket on the first column until the very end of a java file.

also we can move the method getModeDisplay() into the Benchmark.java.

@jamesmarkchan
Copy link
Member

looking good, just some minor items. :)

@jamesmarkchan
Copy link
Member

@vpstackhub could we add these two lines to your changes? Should fix the setting of the IOPS fields when a benchmark is selected.

image

- Move getModeDisplay() to Benchmark and use it from BenchmarkPanel
- Persist writeSyncEnabled for WRITE; null for READ
- Show 'Write*' in Mode via Benchmark.getModeDisplay
- Wire IOPS into Gui.loadBenchmark (App.rIops/App.wIops)
- Indentation fixes in BenchmarkPanel; tighten cast spacing
@vpstackhub
Copy link
Contributor Author

Updates applied:

  • Moved getModeDisplay() into Benchmark.java and updated BenchmarkPanel to call it
  • Wired IOPS fields into Gui.loadBenchmark (App.rIops / App.wIops) so metrics persist correctly
  • Fixed indentation in BenchmarkPanel (lines 21–46, 140–146) per review feedback
  • Corrected casting spacing for percentComplete calculation

This should address all outstanding review notes. thanks for the guidance!

if (ioMode == IOMode.WRITE && Boolean.TRUE.equals(getWriteSyncEnabled())) {
return "Write*";
}
return (ioMode == null) ? "" : ioMode.toString(); // "Read", "Write", "Read & Write"
Copy link
Member

@jamesmarkchan jamesmarkchan Aug 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost perfect val, just lines 169 and 173 should be indented by x4 spaces more each. If you don't mind I'll go ahead and do these for you but in the future nice for you to do them so the author of those lines reflect as yourself. :)

image

@jamesmarkchan jamesmarkchan merged commit a8a8d33 into dev Aug 30, 2025
@jamesmarkchan jamesmarkchan deleted the write-sync-iops branch August 30, 2025 16:40
@jamesmarkchan
Copy link
Member

@vpstackhub interesting that "resolving a conversation" will collapse it and i guess puts it int the background. I went ahead and merged the branch, traditionally most groups delete the branch after merging to minimize clutter, there was a button that allowed me to delete it on the server but to delete the branch on your system to reduce clutter git branch -d <branchname>

@vpstackhub
Copy link
Contributor Author

Thanks so much for merging this on my behalf and for the feedback throughout ,especially the UI lean suggestion and the clean up touches. I’ll keep an eye on the details like indentation next time. Appreciate your guidance as always!

jamesmarkchan added a commit that referenced this pull request Dec 17, 2025
jamesmarkchan added a commit that referenced this pull request Dec 17, 2025
Issue #64: Persist Write Sync flag; show Write* in Mode; keep UI lean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants