mirror of
https://github.com/apache/lucene.git
synced 2025-02-12 21:15:19 +00:00
SOLR-9554: fix NullPointerException when cores move schema.xml to
managed-schema concurrently. No new test is added yet.
This commit is contained in:
parent
5adb8f1bd5
commit
1c614e1d4d
@ -107,6 +107,9 @@ Bug Fixes
|
||||
* SOLR-9504: A replica with an empty index becomes the leader even when other more qualified replicas
|
||||
are in line. (shalin)
|
||||
|
||||
* SOLR-9554: Fix NullPointerException when cores are loaded in parallel and switch schema.xml to managed-scheme.
|
||||
(Alan Woodward, Mikhail Khludnev)
|
||||
|
||||
Optimizations
|
||||
----------------------
|
||||
|
||||
|
@ -152,6 +152,7 @@ public class ManagedIndexSchemaFactory extends IndexSchemaFactory implements Sol
|
||||
byte[] data = zkClient.getData(managedSchemaPath, null, stat, true);
|
||||
schemaZkVersion = stat.getVersion();
|
||||
schemaInputStream = new ByteArrayInputStream(data);
|
||||
loadedResource = managedSchemaPath;
|
||||
warnIfNonManagedSchemaExists();
|
||||
} catch (Exception e1) {
|
||||
if (e1 instanceof InterruptedException) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user