-
Notifications
You must be signed in to change notification settings - Fork 1
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
SAI-4358 : PRS collection deletion race condition #103
Conversation
Added unit test case in ZkStateReaderTest#testDeletePrsCollection
@@ -35,6 +36,8 @@ public class PerReplicaStatesFetcher { | |||
public static PerReplicaStates fetch( | |||
String path, SolrZkClient zkClient, PerReplicaStates current) { | |||
try { | |||
assert CommonTestInjection.injectBreakpoint( |
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.
Why we need to assert here?
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.
so that for normal execution (non unit test), this call will be ignored
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.
LGTM
…undException as their conditions/handling are quite different.
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.
LGTM
* Adding Breakpoint injection to CommonTestInjection * ./gradlew tidy * Fixed javadoc * Fixed race condition for PRS collection on deletion Added unit test case in ZkStateReaderTest#testDeletePrsCollection * ./gradlew tidy * Separate the exception handling of NoNodeException and PrsZkNodeNotFoundException as their conditions/handling are quite different. * Fixed Execution failed for task ':solr:solrj-zookeeper:validateLogCalls'. * ./gradlew tidy * Fixed validateLogCalls
Description
This is just a cherry pick of commits from apache#1460
Detailed described in the above link
We are creating this PR as we want such change in our own repo (ran into that occasionally on playpen eu1 c91) as the upstream change is still under review
This same was reviewed for 8.8 as in fullstorydev/lucene-solr#210