You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/11/19 22:31:00 UTC

[jira] [Commented] (KAFKA-7638) Trogdor - Support mass task creation endpoint

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

ASF GitHub Bot commented on KAFKA-7638:
---------------------------------------

stanislavkozlovski opened a new pull request #5932: KAFKA-7638: Add support for multiple task creation in one request
URL: https://github.com/apache/kafka/pull/5932
 
 
   [JIRA](https://issues.apache.org/jira/browse/KAFKA-7638)
   Trogdor Coordinator now supports creation of multiple tasks in one request call.
   This is exposed under `/coordinator/tasks/mass_create`
   Sample body: 
   ```json
   {"tasks": [{...}, {...}]}
   ```
   
   Additional changes:
   The /tasks/create endpoint (and now mass_create) return 400 with an error message whenever an error is encountered during the task creation. Previously, Trogdor would create the task as "DONE" and return a successful status code, making users manually inspect the tasks' status.
   This, unfortunately, has the nasty downside of returning 400 when an unexpected internal server error occurs. 
   I think that we can live with this for now and open up another KIP that could address error handling in the Trogdor Coordinator REST API.

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


> Trogdor - Support mass task creation endpoint
> ---------------------------------------------
>
>                 Key: KAFKA-7638
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7638
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Stanislav Kozlovski
>            Assignee: Stanislav Kozlovski
>            Priority: Minor
>
> Trogdor supports the creation of tasks via the `coordinator/tasks/create` endpoint - it currently accepts only one task.
> Since Trogdor support scheduling multiple jobs to execute at a certain time (via the `startTime` task parameter leveraged by all tasks), it makes sense to support creating multiple tasks in a single endpoint. 
> Users might want to leverage the scheduler to, say, create 100 tasks. In the current model, they would need to issue 100 requests - which is inefficient.



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