-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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-12708: Aggregate failures from downstream async jobs; add error … #444
Conversation
…handling for RestoreCmd
aa7f9e5
to
16558ee
Compare
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.
Left some comments. I do think this should be combined with #567 before merging (there are some more tests there), I may take that if you don't beat me to it.
ocmh.addReplica(clusterState, new ZkNodeProps(propMap), new NamedList(), null); | ||
final NamedList addResult = new NamedList(); | ||
ocmh.addReplica(clusterState, new ZkNodeProps(propMap), addResult, () -> { | ||
countDownLatch.countDown(); |
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 think we should move this to the end of the callback, or there can be a race condition
|
||
boolean allIsDone = countDownLatch.await(1, TimeUnit.HOURS); | ||
if (!allIsDone) { | ||
throw new TimeoutException("Initial replicas were not created within 10 minutes. Timing out."); |
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.
Outdated error, this is now 1 hour
@@ -0,0 +1,29 @@ | |||
<?xml version="1.0" encoding="UTF-8" ?> |
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.
Maybe there is a way to not have to create this new configset? either use the Config API, or the configset API, or maybe just updating one file? or maybe set a system property that one of the existing configsets will use to something invalid?
Closing since JIRA is closed |
…calculation (apache#444) (cherry picked from commit 07ee3ba83a4c9f3abc24bf9d3fbb3c3102c4a102)
…handling for RestoreCmd