Skip to content
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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

chesnokoff
Copy link
Contributor

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

  • There is a single JIRA ticket related to the pull request.
  • The web-link to the pull request is attached to the JIRA ticket.
  • The JIRA ticket has the Patch Available state.
  • The pull request body describes changes that have been made.
    The description explains WHAT and WHY was made instead of HOW.
  • The pull request title is treated as the final commit message.
    The following pattern must be used: IGNITE-XXXX Change summary where XXXX - number of JIRA issue.
  • A reviewer has been mentioned through the JIRA comments
    (see the Maintainers list)
  • The pull request has been checked by the Teamcity Bot and
    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.

@chesnokoff chesnokoff force-pushed the ignite-24286 branch 3 times, most recently from d3f8f73 to 32caae6 Compare January 22, 2025 21:06
if (view != null)
return view;

if (view == null) {
Copy link
Member

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) {
Copy link
Member

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());
Copy link
Member

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();
Copy link
Member

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";
Copy link
Member

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?

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.

2 participants