github-advanced-security[bot] commented on code in PR #17733:
URL: https://github.com/apache/druid/pull/17733#discussion_r1957890544
##########
extensions-core/kafka-indexing-service/src/test/java/org/apache/druid/indexing/kafka/supervisor/KafkaSupervisorTest.java:
##########
@@ -1527,8 +1527,8 @@
.times(1);
taskRunner.registerListener(EasyMock.anyObject(TaskRunnerListener.class),
EasyMock.anyObject(Executor.class));
- taskQueue.shutdown("id4", "Task [%s] failed to stop in a timely manner,
killing task", "id4");
- taskQueue.shutdown("id5", "Task [%s] failed to stop in a timely manner,
killing task", "id5");
+ taskQueue.shutdown("id4", "Failed to stop in a timely manner", "id4");
Review Comment:
## Unused format argument
This format call refers to 0 argument(s) but supplies 1 argument(s).
[Show more
details](https://github.com/apache/druid/security/code-scanning/8689)
##########
indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/supervisor/SeekableStreamSupervisor.java:
##########
@@ -2625,8 +2616,8 @@
public Void apply(@Nullable Boolean result)
{
if (result == null || !result) {
- log.info("Task [%s] failed to stop in a timely manner, killing
task", id);
- killTask(id, "Task [%s] failed to stop in a timely manner,
killing task", id);
+ log.info("Killing task[%s] as it failed to stop in a timely
manner.", id);
+ killTask(id, "Failed to stop in a timely manner", id);
Review Comment:
## Unused format argument
This format call refers to 0 argument(s) but supplies 1 argument(s).
[Show more
details](https://github.com/apache/druid/security/code-scanning/8691)
##########
extensions-core/kafka-indexing-service/src/test/java/org/apache/druid/indexing/kafka/supervisor/KafkaSupervisorTest.java:
##########
@@ -1527,8 +1527,8 @@
.times(1);
taskRunner.registerListener(EasyMock.anyObject(TaskRunnerListener.class),
EasyMock.anyObject(Executor.class));
- taskQueue.shutdown("id4", "Task [%s] failed to stop in a timely manner,
killing task", "id4");
- taskQueue.shutdown("id5", "Task [%s] failed to stop in a timely manner,
killing task", "id5");
+ taskQueue.shutdown("id4", "Failed to stop in a timely manner", "id4");
+ taskQueue.shutdown("id5", "Failed to stop in a timely manner", "id5");
Review Comment:
## Unused format argument
This format call refers to 0 argument(s) but supplies 1 argument(s).
[Show more
details](https://github.com/apache/druid/security/code-scanning/8690)
--
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]