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/02/04 07:47:52 UTC

[jira] [Updated] (RANGER-1323) The program can not get the correct version when we installed Ranger KMS based on the latest version

     [ https://issues.apache.org/jira/browse/RANGER-1323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Qiang Zhang updated RANGER-1323:
--------------------------------
    Request participants:   (was: )
             Description: 
The program can not get the correct version when we installed Ranger KMS based on the latest version. Now the code logical 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. 
We should add version file into kms install path. The current version should be writed in the version file.

  was:
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 is 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.7.0-SNAPSHOT. 
We should add version file into kms install path. The current version should be writed in the version file.

                 Summary: The program can not get the correct version when we installed Ranger KMS based on the latest version  (was: An incorrect rollback point was created when we installed Ranger KMS based on the latest version)

> The program can not get the correct version 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
>              Labels: patch
>         Attachments: 0001-RANGER-1323-An-incorrect-rollback-point-was-created-.patch
>
>
> The program can not get the correct version when we installed Ranger KMS based on the latest version. Now the code logical 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. 
> We should add version file into kms install path. The current version should be writed in the version file.



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