-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IGNITE-24286 Implement recording sytemViews to perfStart report #11826
base: master
Are you sure you want to change the base?
Conversation
4eea0e1
to
05cb868
Compare
AttributeToMapVisitor class can collect data from system views
The method writes data to .prf file
…lect system views
d3f8f73
to
32caae6
Compare
32caae6
to
672b625
Compare
if (view != null) | ||
return view; | ||
|
||
if (view == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At this line view is always null
.
* @param viewName System view name. | ||
* @return System view with viewName. Null if the view does not exist. | ||
*/ | ||
@Nullable public static SystemView<?> getSystemViewByName(GridSystemViewManager systemViewManager, String viewName) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't use prefixes like get
, set
, is
in function names within internal packages
views = new ArrayList<>(); | ||
sysViewMgr.forEach(view -> views.add(view.name())); | ||
} | ||
else if (startCmdArg.systemViews() != null) views = List.of(startCmdArg.systemViews()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Block of code after condition should be on own line
|
||
if (buf.remaining() < 4) | ||
return false; | ||
int attrsNumber = buf.getInt(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add NL before
@@ -45,6 +47,12 @@ public class PerformanceStatisticsCommandTest extends GridCommandHandlerClusterB | |||
/** */ | |||
public static final String STATUS = "status"; | |||
|
|||
/** */ | |||
public static final String ALL_VIEWS = "--all-system-views"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we actually need to provide options here? Why just collecting all views is not a default behavior?
Thank you for submitting the pull request to the Apache Ignite.
In order to streamline the review of the contribution
we ask you to ensure the following steps have been taken:
The Contribution Checklist
The description explains WHAT and WHY was made instead of HOW.
The following pattern must be used:
IGNITE-XXXX Change summary
whereXXXX
- number of JIRA issue.(see the Maintainers list)
the
green visa
attached to the JIRA ticket (see TC.Bot: Check PR)Notes
If you need any help, please email [email protected] or ask anу advice on http://asf.slack.com #ignite channel.