Skip to content
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-16408: TestHdfsUpdateLog, TestRecoveryHdfs, and TestRandomCollapseQParserPlugin call SolrTestCaseJ4.teardownTestCases instead of deleteCore #1003

Merged
merged 5 commits into from
Sep 19, 2022

Conversation

risdenk
Copy link
Contributor

@risdenk risdenk commented Sep 9, 2022

https://issues.apache.org/jira/browse/SOLR-16408

This uses SolrTestCaseJ4 AfterClass to cleanup and call deleteCore instead of trying to do this in AfterClass in each of the tests themselves.

Copy link
Contributor

@epugh epugh left a comment

Choose a reason for hiding this comment

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

This LGTM... Is there any way, for the future, to prevent this from happening again? Something that could cue you that you called deleteCore twice?

@risdenk
Copy link
Contributor Author

risdenk commented Sep 9, 2022

No idea. There are a bunch of tests that do this in before/after test, but only a few in beforeclass/afterclass. The changes in SOLR-16187 at least gave a clue as to why this was hanging.

@risdenk risdenk changed the title SOLR-16408: TestHdfsUpdateLog, TestRecoveryHdfs, and TestRandomCollapseQParserPlugin try to deleteCore twice SOLR-16408: TestHdfsUpdateLog, TestRecoveryHdfs, and TestRandomCollapseQParserPlugin call SolrTestCaseJ4.teardownTestCases instead of deleteCore Sep 19, 2022
@risdenk risdenk merged commit 5cbef9e into apache:main Sep 19, 2022
@risdenk risdenk deleted the SOLR-16408 branch September 19, 2022 19:03
risdenk added a commit that referenced this pull request Sep 19, 2022
…seQParserPlugin call SolrTestCaseJ4.teardownTestCases instead of deleteCore (#1003)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants