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

Jian He commented on YARN-1239:
-------------------------------

Quote from protocol buffer guide.
{code}
If you want your new buffers to be backwards-compatible, and your old buffers 
to be forward-compatible – and you almost certainly do want this – then there 
are some rules you need to follow. In the new version of the protocol buffer:

you must not change the tag numbers of any existing fields.
you must not add or delete any required fields.
you may delete optional or repeated fields.
you may add new optional or repeated fields but you must use fresh tag numbers 
(i.e. tag numbers that were never used in this protocol buffer, not even by 
deleted fields).
{code}

> Save version information in the state store
> -------------------------------------------
>
>                 Key: YARN-1239
>                 URL: https://issues.apache.org/jira/browse/YARN-1239
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: resourcemanager
>            Reporter: Bikas Saha
>            Assignee: Jian He
>         Attachments: YARN-1239.1.patch, YARN-1239.2.patch, YARN-1239.3.patch, 
> YARN-1239.patch
>
>
> When creating root dir for the first time we should write version 1. If root 
> dir exists then we should check that the version in the state store matches 
> the version from config.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to