-
Notifications
You must be signed in to change notification settings - Fork 686
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
SOLR-17156: introducing RandomNoReverseMergePolicyFactory #2289
SOLR-17156: introducing RandomNoReverseMergePolicyFactory #2289
Conversation
healing BJQParserTest
It needs to be spread across other block join tests as well. |
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.
Cool!
Defend other block join tests from reverse merge.
The scope has blown up. Are there other tests rely on block alignment? |
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.
No; please use SystemPropertiesRestoreRule instead. See its constructor that takes the key and value. No need to add BeforeClass/AfterClass logic to all these tests.
Hopefully no need to bother with touching test infrastructure (e.g. SolrTestCase).
solr/test-framework/src/java/org/apache/solr/util/RandomNoReverseMergePolicyFactory.java
Show resolved
Hide resolved
@dsmiley thanks for the guidance. I'll check it out. |
I'm ok with this proposal @dsmiley. But I can't find any usage of two args constructor, so far all tests use Note: I changed |
RuleChain is for more compactly listing many rules and/or if the ordering is important and should be clear. Here, I think simply @ClassRule for an entire test source file (aka test suite).
Could define the Map.of(...,...) constant in SolrTestCase. This rule accepts a Map constructor. I personally don't care; string literals don't bother me. Some people seem religious about avoiding them. 🤷 |
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.
Nice
I think it's test only change, thus it doesn't deserves CHANGES entry |
- Defend other block join tests from reverse merge. - introduce @ClassRule for no revers merge policy
healing BJQParserTest
https://issues.apache.org/jira/browse/SOLR-17156