Na Li created SENTRY-2141:
Summary: Sentry Privilege TimeStamp is not converted to grantTime
in HivePrivilegeInfo correctly
Issue Type: Bug
Affects Versions: 2.0.0, 2.1.0
Reporter: Na Li
Assignee: Na Li
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