Skip to content

IGNITE-27696 Fix IndexQuery can query backup partition if setPartition is used#12679

Merged
timoninmaxim merged 6 commits intoapache:masterfrom
timoninmaxim:IGNITE-27696__idx_qry_backups
Feb 13, 2026
Merged

IGNITE-27696 Fix IndexQuery can query backup partition if setPartition is used#12679
timoninmaxim merged 6 commits intoapache:masterfrom
timoninmaxim:IGNITE-27696__idx_qry_backups

Conversation

@timoninmaxim
Copy link
Member

…n used

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.

@timoninmaxim timoninmaxim force-pushed the IGNITE-27696__idx_qry_backups branch from bf77ebf to ce8ab50 Compare February 11, 2026 11:03
@timoninmaxim timoninmaxim force-pushed the IGNITE-27696__idx_qry_backups branch from 8772da6 to 58e1f25 Compare February 11, 2026 12:12
@timoninmaxim timoninmaxim changed the title IGNITE-27696 Fix IndexQuery queries backup partition when setPartitio… IGNITE-27696 Fix IndexQuery can query backup partition if setPartition is used Feb 12, 2026

return F.view(affNodes, new P1<ClusterNode>() {
@Override public boolean apply(ClusterNode n) {
return cctx.discovery().cacheAffinityNode(n, cctx.name()) &&
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like cctx.discovery().cacheAffinityNode always true for nodes, derived by CU.affinityNodes(cctx, topVer).
The whole statement can be simplified to something like:
return prj == null ? affNodes : F.view(affNodes, n -> prj.node(n.id()) != null);
Also, looks like prj is only used for local node filtering. Perhaps it can be simplified too (but maybe not in this ticket)

@sonarqubecloud
Copy link

@timoninmaxim timoninmaxim merged commit 4e2e691 into apache:master Feb 13, 2026
9 checks passed
@timoninmaxim timoninmaxim deleted the IGNITE-27696__idx_qry_backups branch February 13, 2026 12:52
zstan pushed a commit that referenced this pull request Feb 16, 2026
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