You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicecomb.apache.org by GitBox <gi...@apache.org> on 2017/12/22 12:29:09 UTC

[GitHub] weichao666 opened a new pull request #443: [JAV-558] pullTask,use rev to ensure data consistency and reduce service center work load

weichao666 opened a new pull request #443: [JAV-558] pullTask,use rev to ensure data consistency and reduce service center work load
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/443
 
 
   ? transmission
   
   Follow this checklist to help us incorporate your contribution quickly and easily:
   
    - [ ] Make sure there is a [JIRA issue](https://https://servicecomb.atlassian.net/projects/JAV/issues) filed for the change (usually before you start working on it).  Trivial changes like typos do not require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.
    - [x] Each commit in the pull request should have a meaningful subject line and body.
    - [x] Format the pull request title like `[JAV-XXX] Fixes bug in ApproximateQuantiles`, where you replace `JAV-XXX` with the appropriate JIRA issue.
    - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
    - [ ] Run `mvn clean install` to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
    - [ ] If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
   
   ---
   When pull task,SC will return to the result with the version number X-Resource-Revision in the HEADER?SDK recodes this rev and sends it to SC at the next request.
   If the rev of SDK is greater than the rev of SC, it means that the result of SDK is new to SC, SC doesn't need to be processed, and returns 304 to indicate that SDK's cache is not refreshed.
   If the rev of SDK is less than SC's rev, SC returns the updated result set to SDK, SDK refreshes the cache and updates the Rev.
   The effect is that SDK requests different SC and does not have data inconsistencies, at the same time reducing the amount of data transmission in the channel

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


With regards,
Apache Git Services