[ https://issues.apache.org/jira/browse/SENTRY-2141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16368143#comment-16368143 ]
Hadoop QA commented on SENTRY-2141: ----------------------------------- Here are the results of testing the latest attachment https://issues.apache.org/jira/secure/attachment/12910998/SENTRY-2141.002.patch against master. {color:green}Overall:{color} +1 all checks pass {color:green}SUCCESS:{color} all tests passed Console output: https://builds.apache.org/job/PreCommit-SENTRY-Build/3666/console This message is automatically generated. > Sentry Privilege TimeStamp is not converted to grantTime in HivePrivilegeInfo > correctly > --------------------------------------------------------------------------------------- > > Key: SENTRY-2141 > URL: https://issues.apache.org/jira/browse/SENTRY-2141 > Project: Sentry > Issue Type: Bug > Affects Versions: 2.0.0, 2.1.0 > Reporter: Na Li > Assignee: Na Li > Priority: Major > Attachments: SENTRY-2141.001.patch, SENTRY-2141.002.patch > > > sentry CreateTime is the difference, measured in milliseconds, between the > current time and midnight, January 1, 1970 UTC. hive granttime is in seconds. > So need to convert the time. > The original code just cost the timestamp from long to int without converting > milliseconds to seconds. Therefore, the timestamp value is wrong when > retrieving the privilege from hive. > The solution is to convert the time correctly. -- This message was sent by Atlassian JIRA (v7.6.3#76005)