Stanislav Kozlovski created KAFKA-7618:
------------------------------------------

             Summary: 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


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)

Reply via email to