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-24516 : Refeactor building of idle verify result. #11866

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

Conversation

Vladsz83
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.

@Vladsz83 Vladsz83 changed the title Refactor IdleVerify Refactor building of IdleVerifyResult Feb 11, 2025
@Vladsz83 Vladsz83 changed the title Refactor building of IdleVerifyResult IGNITE-24516 : Refeactor building of idle verify result. Feb 13, 2025
@@ -437,23 +434,23 @@ private PartitionHashRecord calculateDumpedPartitionHash(Dump dump, String grpNa
/** {@inheritDoc} */
@Override public void complete(String name,
Collection<SnapshotHandlerResult<Map<PartitionKey, PartitionHashRecord>>> results) throws IgniteCheckedException {
Map<PartitionKey, List<PartitionHashRecord>> clusterHashes = new HashMap<>();
Map<ClusterNode, Exception> errs = new HashMap<>();
Copy link
Member

Choose a reason for hiding this comment

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

Looks like we can use bldr.exceptions() everywhere for collection errors. Do we need separate addException method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think not. Exceptions are processed and added differently. There are several places where we get exceptions as a collections, one by one. And we do not want create and wrap to a map manually. This is the target job of the builder.

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