Skip to content

IGNITE-23623 Fix GridCacheAbstractMetricsSelfTest#11658

Closed
chesnokoff wants to merge 3 commits intoapache:masterfrom
chesnokoff:ignite-23623
Closed

IGNITE-23623 Fix GridCacheAbstractMetricsSelfTest#11658
chesnokoff wants to merge 3 commits intoapache:masterfrom
chesnokoff:ignite-23623

Conversation

@chesnokoff
Copy link
Contributor

@chesnokoff chesnokoff commented Nov 14, 2024

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 dev@ignite.apache.org or ask anу advice on http://asf.slack.com #ignite channel.

@chesnokoff chesnokoff changed the title IGNITE-23472 Fix GridCacheAbstractMetricsSelfTest IGNITE-23623 Fix GridCacheAbstractMetricsSelfTest Nov 14, 2024

if (jcache(fi).size(CachePeekMode.ALL) > 0) {
for (Cache.Entry<String, ?> k : jcache(fi).localEntries())
jcache(fi).remove(k.getKey());
Copy link
Member

@timoninmaxim timoninmaxim Nov 18, 2024

Choose a reason for hiding this comment

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

Is there a case when GridCacheAbstractSelfTest#jcache is preferable to GridCommonAbstractTest#jcache? Can we just remove it?

Copy link
Contributor Author

@chesnokoff chesnokoff Nov 18, 2024

Choose a reason for hiding this comment

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

GridCommonAbstractTest#jcache calls grid() and GridCacheAbstractSelfTest#jcache calls jcache(0) -> grid(0). So these methods call different nodes.

@chesnokoff chesnokoff closed this Nov 19, 2024
@chesnokoff chesnokoff reopened this Nov 19, 2024
@chesnokoff chesnokoff closed this Nov 19, 2024
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