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

Mehrdad Nurolahzade commented on AURORA-1924:
---------------------------------------------

https://reviews.apache.org/r/58768/

> Aurora client should reconcile idempotent job creations
> -------------------------------------------------------
>
>                 Key: AURORA-1924
>                 URL: https://issues.apache.org/jira/browse/AURORA-1924
>             Project: Aurora
>          Issue Type: Story
>          Components: Client, Scheduler
>            Reporter: Mehrdad Nurolahzade
>            Priority: Minor
>
> Aurora scheduler rejects a request to create a job if a job with the same key 
> already exists (see {{SchedulerThriftInterface.createJob()}}). Aurora client 
> exits with an error once it receives a response with 
> {{ResponseCode.INVALID_REQUEST}} from scheduler in this case.
> However, an attempt to create a job with the exact same configuration and 
> number of instances is essentially idempotent. Scheduler can detect this 
> situation, ignore it, and signal client to treat operation as successful; 
> client warns user about existing job but does not fail the operation.
> This helps Aurora client and scheduler reconcile state when creating jobs in 
> presence of transport layer exceptions; allowing {{aurora job create}} 
> command can then be marked as idempotent after [AURORA-1923] is fixed.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to