abhishekbafna commented on code in PR #15839:
URL: https://github.com/apache/pinot/pull/15839#discussion_r2097174058
##########
pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/QueryQuotaClusterIntegrationTest.java:
##########
@@ -333,11 +389,15 @@ private void runQueries(int qps, boolean shouldFail,
String applicationName) {
private static volatile String _quotaSource;
private void verifyQuotaUpdate(double quotaQps) {
+ verifyQuotaUpdateWithTableName(quotaQps, getTableName() + "_OFFLINE");
+ }
+
+ private void verifyQuotaUpdateWithTableName(double quotaQps, String
tableName) {
try {
TestUtils.waitForCondition(aVoid -> {
try {
double tableQuota = Double.parseDouble(sendGetRequest(
- "http://" + _brokerHostPort + "/debug/tables/queryQuota/" +
getTableName() + "_OFFLINE"));
+ "http://" + _brokerHostPort + "/debug/tables/queryQuota/" +
tableName));
Review Comment:
Yes. It is a table name to query quota mapping so it works.
Link:
https://github.com/apache/pinot/blob/61de01bd529fd37b26a33ad4dc113e1d3ce0aa76/pinot-broker/src/main/java/org/apache/pinot/broker/queryquota/HelixExternalViewBasedQueryQuotaManager.java#L633
--
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]