You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2018/10/18 22:41:47 UTC

[GitHub] jsun98 opened a new issue #6491: TaskRunnerUtils string formatting exception

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org