hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhijie Shen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-2401) Rethinking of the HTTP method of TimelineWebServices#postEntities
Date Sat, 09 Aug 2014 18:58:13 GMT
Zhijie Shen created YARN-2401:

             Summary: Rethinking of the HTTP method of TimelineWebServices#postEntities
                 Key: YARN-2401
                 URL: https://issues.apache.org/jira/browse/YARN-2401
             Project: Hadoop YARN
          Issue Type: Sub-task
          Components: timelineserver
            Reporter: Zhijie Shen
            Assignee: Zhijie Shen

Now TimelineWebServices#postEntities is using POST. However, semantically, postEntities is
creating an entity or append more data into it. POST may not be the most proper method to
for this API.

AFAIK, PUT is used to update the entire resource and supposed to be idempotent. Therefore,
I'm not sure it's an idea to change the method to PUT because once the entity is created,
the following updates are actually appending more data to the existing one. The best fit should
be PATCH, however, it requires the additional implementation at the web services side. Hence,
somebody online suggested using POST for partial non-idempotent update as well. We need to
think more about it.

This message was sent by Atlassian JIRA

View raw message