github-advanced-security[bot] commented on code in PR #18786:
URL: https://github.com/apache/druid/pull/18786#discussion_r2571404960
##########
integration-tests/src/test/java/org/apache/druid/tests/query/ITQueryRetryTestOnMissingSegments.java:
##########
@@ -227,25 +229,34 @@
return buildQuery(numRetriesOnMissingSegments, allowPartialResults, -1);
}
- private String buildQuery(int numRetriesOnMissingSegments, boolean
allowPartialResults, int unavailableSegmentIdx) throws IOException
+ private String buildQuery(int numRetriesOnMissingSegments, boolean
allowPartialResults, int unavailableSegmentIdx)
+ throws IOException
{
return StringUtils.replace(
AbstractIndexerTest.getResourceAsString(QUERIES_RESOURCE),
"%%CONTEXT%%",
-
jsonMapper.writeValueAsString(buildContext(numRetriesOnMissingSegments,
allowPartialResults, unavailableSegmentIdx))
+ jsonMapper.writeValueAsString(buildContext(
+ numRetriesOnMissingSegments,
+ allowPartialResults,
+ unavailableSegmentIdx
+ ))
);
}
- private static Map<String, Object> buildContext(int
numRetriesOnMissingSegments, boolean allowPartialResults, int
unavailableSegmentIdx)
+ private static Map<String, Object> buildContext(
+ int numRetriesOnMissingSegments,
+ boolean allowPartialResults,
+ int unavailableSegmentIdx
Review Comment:
## Useless parameter
The parameter 'unavailableSegmentIdx' is never used.
[Show more
details](https://github.com/apache/druid/security/code-scanning/10570)
--
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]