jsun98 opened a new issue #6491: TaskRunnerUtils string formatting exception URL: https://github.com/apache/incubator-druid/issues/6491 in HttpRemoteTaskRunner.streamTaskLog(), the String formatter line is `/druid/worker/v1/task/%s/log?offset=%d`, but `TaskRunnerUtils.makeWorkerURL` calls `StringUtils.urlEncode()` which formats all the pathParams to String. ``` 2018-10-18T22:15:59,617 WARN [qtp430119837-91] org.apache.druid.indexing.overlord.http.OverlordResource - Failed to stream log for task index_wikipedia_2018-10-18T22:15:49.856Z java.util.IllegalFormatConversionException: d != java.lang.String at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:4302) ~[?:1.8.0_162] at java.util.Formatter$FormatSpecifier.printInteger(Formatter.java:2793) ~[?:1.8.0_162] at java.util.Formatter$FormatSpecifier.print(Formatter.java:2747) ~[?:1.8.0_162] at java.util.Formatter.format(Formatter.java:2520) ~[?:1.8.0_162] at java.util.Formatter.format(Formatter.java:2455) ~[?:1.8.0_162] at java.lang.String.format(String.java:2981) ~[?:1.8.0_162] at org.apache.druid.java.util.common.StringUtils.format(StringUtils.java:121) ~[java-util-0.13.0-incubating.jar:0.13.0-incubating] at org.apache.druid.indexing.overlord.TaskRunnerUtils.makeWorkerURL(TaskRunnerUtils.java:105) ~[druid-indexing-service-0.13.0-incubating.jar:0.13.0-incubating] at org.apache.druid.indexing.overlord.RemoteTaskRunner.streamTaskLog(RemoteTaskRunner.java:600) ~[druid-indexing-service-0.13.0-incubating.jar:0.13.0-incubating] at org.apache.druid.indexing.common.tasklogs.TaskRunnerTaskLogStreamer.streamTaskLog(TaskRunnerTaskLogStreamer.java:48) ~[druid-indexing-service-0.13.0-incubating.jar:0.13.0-incubating] at org.apache.druid.indexing.common.tasklogs.SwitchingTaskLogStreamer.streamTaskLog(SwitchingTaskLogStreamer.java:48) ~[druid-indexing-service-0.13.0-incubating.jar:0.13.0-incubating] ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on 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]
