mirror of https://github.com/apache/lucene.git
SOLR-14969: Prevent creating multiple cores with the same name which leads to instabilities (race condition) changed error code
This commit is contained in:
parent
0bfa2a6908
commit
be19432b75
|
@ -1280,7 +1280,7 @@ public class CoreContainer {
|
|||
} else {
|
||||
String msg = "Already creating a core with name '" + coreName + "', call aborted '";
|
||||
log.warn(msg);
|
||||
throw new SolrException(ErrorCode.SERVER_ERROR, msg);
|
||||
throw new SolrException(ErrorCode.CONFLICT, msg);
|
||||
}
|
||||
}
|
||||
CoreDescriptor cd = new CoreDescriptor(coreName, instancePath, parameters, getContainerProperties(), getZkController());
|
||||
|
|
Loading…
Reference in New Issue