github-advanced-security[bot] commented on code in PR #17834:
URL: https://github.com/apache/druid/pull/17834#discussion_r2022759891
##########
integration-tests/src/main/java/org/apache/druid/testing/clients/CompactionResourceTestClient.java:
##########
@@ -134,6 +182,22 @@
public void forceTriggerAutoCompaction() throws Exception
{
+ // Perform a dummy update of task slots to force the coordinator to
refresh its compaction config
+ final ClusterCompactionConfig clusterConfig = getClusterConfig();
+ updateCompactionTaskSlot(
+ clusterConfig.getCompactionTaskSlotRatio(),
+ clusterConfig.getMaxCompactionTaskSlots() + 10
+ );
Review Comment:
## Deprecated method or constructor invocation
Invoking [CompactionResourceTestClient.updateCompactionTaskSlot](1) should
be avoided because it has been deprecated.
[Show more
details](https://github.com/apache/druid/security/code-scanning/8781)
##########
integration-tests/src/main/java/org/apache/druid/testing/clients/CompactionResourceTestClient.java:
##########
@@ -134,6 +182,22 @@
public void forceTriggerAutoCompaction() throws Exception
{
+ // Perform a dummy update of task slots to force the coordinator to
refresh its compaction config
+ final ClusterCompactionConfig clusterConfig = getClusterConfig();
+ updateCompactionTaskSlot(
+ clusterConfig.getCompactionTaskSlotRatio(),
+ clusterConfig.getMaxCompactionTaskSlots() + 10
+ );
+ updateCompactionTaskSlot(
+ clusterConfig.getCompactionTaskSlotRatio(),
+ clusterConfig.getMaxCompactionTaskSlots()
+ );
Review Comment:
## Deprecated method or constructor invocation
Invoking [CompactionResourceTestClient.updateCompactionTaskSlot](1) should
be avoided because it has been deprecated.
[Show more
details](https://github.com/apache/druid/security/code-scanning/8782)
--
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]