-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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-23562 SQL Calcite: Fix partition reservation for index-count-scan (on top of refactoring) #11651
base: master
Are you sure you want to change the base?
Conversation
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
88805c5
to
3efc652
Compare
# Conflicts: # modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/schema/CacheIndexImpl.java
...e/src/main/java/org/apache/ignite/internal/processors/query/calcite/exec/IndexCountScan.java
Outdated
Show resolved
Hide resolved
...nite/internal/processors/query/calcite/integration/PartitionsReservationIntegrationTest.java
Show resolved
Hide resolved
/** */ | ||
@Test | ||
public void testIndexCount() throws Exception { | ||
checkPartitionsReservationRelease( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've put if (true) return createIterator();
in AbstractCacheScan#iterator()
. This test works. Is it ok?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you run it several times it fails with a high failure rate:
java.lang.AssertionError: Collections are not equal (position 0):
Expected: [[1600000]]
Actual: [[1599889]]
at org.junit.Assert.fail(Assert.java:88)
at org.apache.ignite.internal.processors.query.calcite.QueryChecker.assertEqualsCollections(QueryChecker.java:479)
at org.apache.ignite.internal.processors.query.calcite.QueryChecker.check(QueryChecker.java:454)
at org.apache.ignite.internal.processors.query.calcite.integration.PartitionsReservationIntegrationTest$1.run(PartitionsReservationIntegrationTest.java:118)
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
The description explains WHAT and WHY was made instead of HOW.
The following pattern must be used:
IGNITE-XXXX Change summary
whereXXXX
- number of JIRA issue.(see the Maintainers list)
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.