[ https://issues.apache.org/jira/browse/KAFKA-7564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16667145#comment-16667145 ]
ASF GitHub Bot commented on KAFKA-7564: --------------------------------------- stanislavkozlovski opened a new pull request #5852: KAFKA-7564: Expose single task details in Trogdor URL: https://github.com/apache/kafka/pull/5852 This PR adds a new "/coordinator/tasks/{taskId}" endpoint which fetches details for a single task ---------------------------------------------------------------- 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: us...@infra.apache.org > Trogdor - Expose single task details from Trogdor Coordinator > ------------------------------------------------------------- > > Key: KAFKA-7564 > URL: https://issues.apache.org/jira/browse/KAFKA-7564 > Project: Kafka > Issue Type: Improvement > Reporter: Stanislav Kozlovski > Assignee: Stanislav Kozlovski > Priority: Minor > > The only way to currently get the results from tasks ran in Trogdor is > through listing all of them via the "--show-tasks" CLI command > {code:java} > ./bin/trogdor.sh client --show-tasks localhost:8889 Got coordinator tasks: > { "tasks":{ "produce_bench_20462":{ "state":"DONE", > "spec":{ > "class":"org.apache.kafka.trogdor.workload.ProduceBenchSpec", > "startMs":0, "durationMs":10000000, > "producerNode":"node0", "bootstrapServers":"localhost:9092", > "targetMessagesPerSec":10, "maxMessages":100, > "keyGenerator":{ "type":"sequential", > "size":4, "startOffset":0 }, > "valueGenerator":{ "type":"constant", > "size":512, > "value":"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" > }, "totalTopics":10, "activeTopics":5, > "topicPrefix":"foo", "replicationFactor":1, > "classLoader":{ }, "numPartitions":1 }, > "startedMs":1523552769850, "doneMs":1523552780878, > "cancelled":false, "status":{ "totalSent":500, > "averageLatencyMs":4.972, "p50LatencyMs":4, > "p95LatencyMs":6, "p99LatencyMs":12 } } } } > {code} > This can prove inefficient and annoying if the Trogdor Coordinator is > long-running and we only want to get the results from a specific task. > The current REST endpoint ("/tasks") for listing tasks enables filtering > through StartTimeMs/EndTimeMs and supplying specific TaskIDs, but it would be > cleaner if we had a specific endpoint for fetching a single task. That > endpoint would also return a 404 in the case where no task was found instead > of an empty response as the /tasks endpoint would. > I propose we expose a new "/tasks/:id" endpoint and a new cli command > "--show-task TASK_ID" -- This message was sent by Atlassian JIRA (v7.6.3#76005)