mirror of https://github.com/apache/druid.git
remove backpressure time from DefaultQueryMetrics pending on-going discussion (#6631)
This commit is contained in:
parent
d738ce4d2a
commit
7b41e23cbb
|
@ -247,7 +247,8 @@ public class DefaultQueryMetrics<QueryType extends Query<?>> implements QueryMet
|
|||
@Override
|
||||
public QueryMetrics<QueryType> reportBackPressureTime(long timeNs)
|
||||
{
|
||||
return reportMillisTimeMetric("query/node/backpressure", timeNs);
|
||||
// Don't emit by default.
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -152,10 +152,5 @@ public class DefaultQueryMetricsTest
|
|||
actualEvent = cachingEmitter.getLastEmittedEvent().toMap();
|
||||
Assert.assertEquals("query/node/bytes", actualEvent.get("metric"));
|
||||
Assert.assertEquals(10L, actualEvent.get("value"));
|
||||
|
||||
queryMetrics.reportBackPressureTime(11000001).emit(serviceEmitter);
|
||||
actualEvent = cachingEmitter.getLastEmittedEvent().toMap();
|
||||
Assert.assertEquals("query/node/backpressure", actualEvent.get("metric"));
|
||||
Assert.assertEquals(11L, actualEvent.get("value"));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue