mcvsubbu commented on code in PR #8550:
URL: https://github.com/apache/pinot/pull/8550#discussion_r854431526
##########
pinot-broker/src/main/java/org/apache/pinot/broker/routing/instanceselector/ReplicaGroupInstanceSelector.java:
##########
@@ -49,15 +56,26 @@ public ReplicaGroupInstanceSelector(String
tableNameWithType, BrokerMetrics brok
@Override
Map<String, String> select(List<String> segments, int requestId,
- Map<String, List<String>> segmentToEnabledInstancesMap) {
+ Map<String, List<String>> segmentToEnabledInstancesMap, Map<String,
String> queryOptions) {
Map<String, String> segmentToSelectedInstanceMap = new
HashMap<>(HashUtil.getHashMapCapacity(segments.size()));
+ int numReplicaGroupsToQuery = 1;
+ int replicaOffset = 0;
+ Integer replicaGroup =
QueryOptionsUtils.getNumReplicaGroupsToQuery(queryOptions);
+ if (replicaGroup != null) {
Review Comment:
```suggestion
final int numReplicasToQuery = replicaGroup == null ? 1 : replicaGroup;
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]