mirror of https://github.com/apache/lucene.git
SOLR-12031: Fix a confusion in index size units in the simulator framework.
This commit is contained in:
parent
eb80ca968e
commit
1485b7a4d7
|
@ -396,8 +396,10 @@ public class SimClusterStateProvider implements ClusterStateProvider {
|
||||||
List<ReplicaInfo> replicas = nodeReplicaMap.computeIfAbsent(nodeId, n -> new ArrayList<>());
|
List<ReplicaInfo> replicas = nodeReplicaMap.computeIfAbsent(nodeId, n -> new ArrayList<>());
|
||||||
// mark replica as active
|
// mark replica as active
|
||||||
replicaInfo.getVariables().put(ZkStateReader.STATE_PROP, Replica.State.ACTIVE.toString());
|
replicaInfo.getVariables().put(ZkStateReader.STATE_PROP, Replica.State.ACTIVE.toString());
|
||||||
// add a property expected in tests
|
// add a property expected in Policy calculations and in tests
|
||||||
replicaInfo.getVariables().put(Suggestion.coreidxsize, SimCloudManager.DEFAULT_IDX_SIZE_BYTES);
|
// NOTE: this confusingly reuses INDEX.sizeInBytes name but
|
||||||
|
// the actual value is expressed in GB units!!!
|
||||||
|
replicaInfo.getVariables().put(Suggestion.coreidxsize, 1);
|
||||||
|
|
||||||
replicas.add(replicaInfo);
|
replicas.add(replicaInfo);
|
||||||
// at this point nuke our cached DocCollection state
|
// at this point nuke our cached DocCollection state
|
||||||
|
|
Loading…
Reference in New Issue