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-12708: Aggregate failures from downstream async jobs; add error … #444

Closed
wants to merge 1 commit into from

Conversation

manokovacs
Copy link

…handling for RestoreCmd

Copy link
Member

@tflobbe tflobbe left a 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();
Copy link
Member

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.");
Copy link
Member

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" ?>
Copy link
Member

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?

@janhoy
Copy link
Contributor

janhoy commented Jun 14, 2019

Closing since JIRA is closed

@janhoy janhoy closed this Jun 14, 2019
zacharymorn added a commit to zacharymorn/lucene-solr that referenced this pull request Jan 6, 2022
…calculation (apache#444)

(cherry picked from commit 07ee3ba83a4c9f3abc24bf9d3fbb3c3102c4a102)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants