leventov commented on a change in pull request #7562: Enable toggling request
logging on/off for different query types
URL: https://github.com/apache/incubator-druid/pull/7562#discussion_r309822632
##########
File path:
server/src/test/java/org/apache/druid/server/log/FilteredRequestLoggerTest.java
##########
@@ -106,6 +113,10 @@ public void testNotFilterAboveThreshold() throws
IOException
EasyMock.expect(nativeRequestLogLine.getQueryStats())
.andReturn(new QueryStats(ImmutableMap.of("query/time", 1000)))
.once();
+ EasyMock.expect(nativeRequestLogLine.getQuery())
+ .andReturn(new SegmentMetadataQuery(new LegacyDataSource("foo"),
Review comment:
Please extract `new SegmentMetadataQuery(...)` as a variable.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]