shounakmk219 commented on code in PR #13544: URL: https://github.com/apache/pinot/pull/13544#discussion_r1679330670
########## pinot-broker/src/main/java/org/apache/pinot/broker/queryquota/HelixExternalViewBasedQueryQuotaManager.java: ########## @@ -46,21 +55,31 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import static org.apache.pinot.spi.utils.CommonConstants.Helix.DATABASE_QUERY_RATE_LIMIT; + /** * This class is to support the qps quota feature. - * It depends on the broker source change to update the dynamic rate limit, - * which means it only gets updated when a new table added or a broker restarted. + * It allows performing qps quota check at table level and database level + * For table level check it depends on the broker source change to update the dynamic rate limit, + * which means it gets updated when a new table added or a broker restarted. + * For database level check it depends on the broker as well as cluster config change to update the dynamic rate limit, + * which means it gets updated when the default query quota at cluster config is updated or a broker restarted. */ public class HelixExternalViewBasedQueryQuotaManager implements ClusterChangeHandler, QueryQuotaManager { Review Comment: Yes I will be adding test cases shortly. -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org