You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Qiang Zhang (JIRA)" <ji...@apache.org> on 2017/01/22 09:06:26 UTC

[jira] [Created] (RANGER-1323) An incorrect rollback point was created when we installed Ranger KMS based on the latest version

Qiang Zhang created RANGER-1323:
-----------------------------------

             Summary: An incorrect rollback point was created when we installed Ranger KMS based on the latest version
                 Key: RANGER-1323
                 URL: https://issues.apache.org/jira/browse/RANGER-1323
             Project: Ranger
          Issue Type: Bug
          Components: kms
            Reporter: Qiang Zhang
            Assignee: Qiang Zhang
            Priority: Minor


An incorrect rollback point was created when we installed Ranger KMS based on the latest version. The reason is as follows:
Create rollback point logic code as follows:
create_rollback_point() {
    DATE=`date`
    BAK_FILE=$APP-$VERSION.$DATE.bak
    log "Creating backup file : $BAK_FILE"
    cp "$APP" "$BAK_FILE"
}
Variable VERSION assignment logic is as follows:
if [ -f ${PWD}/version ] 
then
	VERSION=`cat ${PWD}/version`
else
	VERSION="0.5.0"
fi
Now the version file does not exist. VERSION can only be equal to 0.5.0. The current version is 0.6.x. 
We should add version file into kms install patch. The current version should be writed in the version file.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)