jackjlli commented on a change in pull request #4338: Within a partition, only 
allow querying the first CONSUMING segment for the real-time table routing
URL: https://github.com/apache/incubator-pinot/pull/4338#discussion_r295126430
 
 

 ##########
 File path: 
pinot-broker/src/main/java/org/apache/pinot/broker/routing/builder/LowLevelRoutingTableBuilderUtil.java
 ##########
 @@ -32,59 +32,49 @@
 public class LowLevelRoutingTableBuilderUtil {
 
   /**
-   * Compute the map of allowed 'consuming' segments for each partition.
+   * Compute the map of allowed CONSUMING segments for each partition for 
routing purpose.
+   * <p>Within a partition, we only allow querying the first CONSUMING segment 
(segment with instances in CONSUMING
+   * state) for the following reasons:
+   * <ul>
+   *   <li>
+   *     If within a partition, there are multiple CONSUMING segments 
(typically caused by the delay of CONSUMING to
 
 Review comment:
   Within a partition, there could be multiple CONSUMING segments (typically 
caused by the delay of CONSUMING to ONLINE state transition). We should only 
allow querying the first CONSUMING segment because it might contain records 
that overlapped with the records in the next segment (over-consumed).

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to