You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Stanislav Kozlovski (JIRA)" <ji...@apache.org> on 2018/11/12 13:38:00 UTC

[jira] [Commented] (KAFKA-7618) Trogdor - Fix /tasks endpoint parameters

    [ https://issues.apache.org/jira/browse/KAFKA-7618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16683803#comment-16683803 ] 

Stanislav Kozlovski commented on KAFKA-7618:
--------------------------------------------

https://github.com/apache/kafka/pull/5905

> Trogdor - Fix /tasks endpoint parameters
> ----------------------------------------
>
>                 Key: KAFKA-7618
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7618
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Stanislav Kozlovski
>            Assignee: Stanislav Kozlovski
>            Priority: Minor
>
> A Trogdor Coordinator's `/tasks` endpoint returns the status of all tasks. It supports arguments to filter the tasks, like `firstStartMs`, `lastStartMs`, `firstEndMs`, `lastEndMs`.
> These arguments denote milliseconds since the unix epoch.
> There is a bug currently where the endpoint parses the arguments as integers, whereas they should be long (the current unix millisecond timestamp does not fit into an integer).
> This results in API calls returning a 404
> {code:java}
> curl -v -L -G -d "firstStartMs=1542028764787" localhost:8889/coordinator/tasks
> * Trying ::1...
> * TCP_NODELAY set
> * Connected to localhost (::1) port 8889 (#0)
> > GET /coordinator/tasks?firstStartMs=154202876478 HTTP/1.1
> > Host: localhost:8889
> > User-Agent: curl/7.54.0
> > Accept: */*
> >
> < HTTP/1.1 500 Internal Server Error
> < Date: Mon, 12 Nov 2018 13:28:59 GMT
> < Content-Type: application/json
> < Content-Length: 43
> < Server: Jetty(9.4.12.v20180830)
> <
> * Connection #0 to host localhost left intact{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)