[#xx] Fix writecache benchmarks and refactor hacky NeedsCompression #586

Merged
fyrchik merged 1 commit from ale64bit/frostfs-node:fix/wc-benchmarks into master 2023-08-10 08:05:20 +00:00
Member

Previously they were not accurate due to missing RawData and swallowing the error.

Signed-off-by: Alejandro Lopez a.lopez@yadro.com

Previously they were not accurate due to missing `RawData` and swallowing the error. Signed-off-by: Alejandro Lopez <a.lopez@yadro.com>
ale64bit requested review from storage-core-committers 2023-08-09 12:56:19 +00:00
ale64bit requested review from storage-core-developers 2023-08-09 12:56:21 +00:00
ale64bit force-pushed fix/wc-benchmarks from cb211f31be to 41c24d2f71 2023-08-09 12:57:11 +00:00 Compare
ale64bit force-pushed fix/wc-benchmarks from 41c24d2f71 to 66e4f76f49 2023-08-09 13:29:41 +00:00 Compare
acid-ant approved these changes 2023-08-09 13:46:36 +00:00
fyrchik approved these changes 2023-08-09 14:17:28 +00:00
@ -36,3 +17,3 @@
path string
// blobstor is the main persistent storage.
blobstor blob
blobstor writecache.Storage
Owner

Storage here is related not to the writecache storage, but to the storage it flushes too
Cae we leave the name as Blobstor?

`Storage` here is related not to the writecache storage, but to the storage it flushes too Cae we leave the name as `Blobstor`?
Author
Member

discussed offline. Renamed to MainStorage.

discussed offline. Renamed to `MainStorage`.
fyrchik marked this conversation as resolved
@ -113,3 +113,3 @@
}
if c.blobstor.NeedsCompression(prm.Object) {
if c.blobstor.Compressor().NeedsCompression(prm.Object) {
Owner

Maybe also make (*compression.Config) NeedsCompression() work for nil Config?
Or check for nil here, I think it is easy to forget this in blobstor, for example.

Maybe also make `(*compression.Config) NeedsCompression()` work for `nil` Config? Or check for nil here, I think it is easy to forget this in blobstor, for example.
Author
Member

done

done
fyrchik marked this conversation as resolved
ale64bit force-pushed fix/wc-benchmarks from 66e4f76f49 to 0143ccb2db 2023-08-10 07:03:59 +00:00 Compare
fyrchik approved these changes 2023-08-10 08:05:13 +00:00
fyrchik merged commit 8f994163ee into master 2023-08-10 08:05:20 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-core-developers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#586
No description provided.