Skip to content

Add statistics and make scsictl accept generic key/value parameters (#1237/#1238)#1262

Merged
uweseimet merged 12 commits intodevelopfrom
issues_1237_1238
Oct 30, 2023
Merged

Add statistics and make scsictl accept generic key/value parameters (#1237/#1238)#1262
uweseimet merged 12 commits intodevelopfrom
issues_1237_1238

Conversation

@uweseimet
Copy link
Copy Markdown
Contributor

No description provided.

@uweseimet uweseimet changed the title Add statistics and make scsictl accept generic key/value parameters ( Add statistics and make scsictl accept generic key/value parameters (#1237/#1238) Oct 22, 2023
@uweseimet uweseimet marked this pull request as ready for review October 22, 2023 16:59
@uweseimet uweseimet requested a review from dialtr October 22, 2023 16:59
Comment on lines +495 to +501
s.set_key(BYTE_READ_COUNT);
s.set_value(byte_read_count);
statistics.push_back(s);

s.set_key(BYTE_WRITE_COUNT);
s.set_value(byte_write_count);
statistics.push_back(s);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is a wishlist item, but is the DP device by any chance aware of reads or writes that resulted in an error? Having error counts in the statistics would be potentially helpful when users are troubleshooting a non-functioning setup (e.g. on Macs where there are many moving parts for functioning networking setup.)

Copy link
Copy Markdown
Contributor Author

@uweseimet uweseimet Oct 30, 2023

Choose a reason for hiding this comment

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

@rdmark This would probably require more insight in how CTapDriver works, and how well errors that qualify for the statistics can be reported by this code. I would expect the errors your are thinking to rather be setup errors, which are logged in the logfile.
In addition, the errors reported are meant to be so serious that a user should be alerted and immediately take action. Setup erros are not this kind of problem. Image a user constantly getting alerts on his mobile while she/he is setting up piscsi ;-).


inline static const vector<string> EMPTY_VECTOR;

// TODO Try to get rid of this field
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What is the context for this TODO? Might be good to elaborate for a future reader of the code, in case you don't get around to resolving it soon.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Just updated the comment.

@uweseimet uweseimet merged commit b7cb23e into develop Oct 30, 2023
@uweseimet uweseimet deleted the issues_1237_1238 branch October 30, 2023 12:32
@sonarqubecloud
Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

27.8% 27.8% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

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.

SERVER_INFO operation shall accept an optional operation list Protobuf client interface: Add read/write and other statistics

2 participants