You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "chesnokoff (via GitHub)" <gi...@apache.org> on 2025/09/17 14:48:54 UTC
[PR] Ignite 26451 [ignite]
chesnokoff opened a new pull request, #12354:
URL: https://github.com/apache/ignite/pull/12354
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](https://cwiki.apache.org/confluence/display/IGNITE/How+to+Contribute#HowtoContribute-ReviewProcessandMaintainers))
- [ ] The pull request has been checked by the Teamcity Bot and
the `green visa` attached to the JIRA ticket (see [TC.Bot: Check PR](https://mtcga.gridgain.com/prs.html))
### Notes
- [How to Contribute](https://cwiki.apache.org/confluence/display/IGNITE/How+to+Contribute)
- [Coding abbreviation rules](https://cwiki.apache.org/confluence/display/IGNITE/Abbreviation+Rules)
- [Coding Guidelines](https://cwiki.apache.org/confluence/display/IGNITE/Coding+Guidelines)
- [Apache Ignite Teamcity Bot](https://cwiki.apache.org/confluence/display/IGNITE/Apache+Ignite+Teamcity+Bot)
If you need any help, please email dev@ignite.apache.org or ask anу advice on http://asf.slack.com _#ignite_ channel.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-26451 [perfStat] Consider canceled queries as successful [ignite]
Posted by "chesnokoff (via GitHub)" <gi...@apache.org>.
chesnokoff commented on code in PR #12354:
URL: https://github.com/apache/ignite/pull/12354#discussion_r2374749362
##########
modules/indexing/src/test/java/org/apache/ignite/internal/processors/performancestatistics/PerformanceStatisticsQueryTest.java:
##########
@@ -488,4 +488,118 @@ public void testMultipleStatementsSql() throws Exception {
assertTrue("Queries was not handled: " + expQrs, expQrs.isEmpty());
assertEquals("Unexpected IDs: " + qryIds, qrsWithReads.size(), qryIds.size());
}
+
+ /** */
+ private Collection<UUID> query(Query<?> qry) {
+ return query(qry, true);
+ }
+
+ /** */
+ private Collection<UUID> query(Query<?> qry, boolean fetchAll) {
+ Collection<UUID> expNodeIds = new ArrayList<>();
+
+ QueryCursor<?> cursor = null;
+
+ if (clientType == SERVER) {
+ cursor = srv.cache(DEFAULT_CACHE_NAME).query(qry);
+
+ expNodeIds.add(srv.localNode().id());
+ }
+ else if (clientType == CLIENT) {
+ cursor = client.cache(DEFAULT_CACHE_NAME).query(qry);
+
+ expNodeIds.add(client.localNode().id());
+ }
+ else if (clientType == THIN_CLIENT) {
+ cursor = thinClient.cache(DEFAULT_CACHE_NAME).query(qry);
+
+ expNodeIds.addAll(nodeIds(client.cluster().forServers().nodes()));
+ }
+
+ if (fetchAll)
+ cursor.getAll();
+ else {
+ Iterator<?> iter = cursor.iterator();
+
+ if (iter.hasNext())
+ iter.next();
+
+ cursor.close();
+ }
+
+ return expNodeIds;
+ }
+
+ /** */
+ private static class QueryCheckConfig {
Review Comment:
We introduced new argument `fetchAll` so I think it's better to create data class to store query test config for better readability
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org