mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
don't throw index missing when updating number of replicas on a closed index
This commit is contained in:
parent
b78680c7ae
commit
f512f43ac5
@ -311,7 +311,8 @@ public class RoutingTable implements Iterable<IndexRoutingTable> {
|
||||
for (String index : indices) {
|
||||
IndexRoutingTable indexRoutingTable = indicesRouting.get(index);
|
||||
if (indexRoutingTable == null) {
|
||||
throw new IndexMissingException(new Index(index));
|
||||
// ignore index missing failure, its closed...
|
||||
continue;
|
||||
}
|
||||
int currentNumberOfReplicas = indexRoutingTable.shards().get(0).size() - 1; // remove the required primary
|
||||
IndexRoutingTable.Builder builder = new IndexRoutingTable.Builder(index);
|
||||
|
Loading…
x
Reference in New Issue
Block a user