You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by si...@apache.org on 2021/08/09 20:35:41 UTC
[atlas] branch branch-2.0 updated: ATLAS-4343:[Entity Audits]
'Propagated Classification Added' Timestamp is < 'Entity Created' Timestamp
This is an automated email from the ASF dual-hosted git repository.
sidmishra pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 62fdd91 ATLAS-4343:[Entity Audits] 'Propagated Classification Added' Timestamp is < 'Entity Created' Timestamp
62fdd91 is described below
commit 62fdd911cf2f29e1f540403c036a7b493c025503
Author: Radhika Kundam <rk...@cloudera.com>
AuthorDate: Thu Aug 5 16:09:20 2021 -0700
ATLAS-4343:[Entity Audits] 'Propagated Classification Added' Timestamp is < 'Entity Created' Timestamp
Signed-off-by: sidmishra <si...@apache.org>
(cherry picked from commit 8edec03affcc9881a3d55f0f3cf9893829bed3bd)
---
.../java/org/apache/atlas/repository/audit/EntityAuditListenerV2.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/repository/src/main/java/org/apache/atlas/repository/audit/EntityAuditListenerV2.java b/repository/src/main/java/org/apache/atlas/repository/audit/EntityAuditListenerV2.java
index 0b7d000..d48c917 100644
--- a/repository/src/main/java/org/apache/atlas/repository/audit/EntityAuditListenerV2.java
+++ b/repository/src/main/java/org/apache/atlas/repository/audit/EntityAuditListenerV2.java
@@ -409,7 +409,7 @@ public class EntityAuditListenerV2 implements EntityChangeListenerV2 {
private EntityAuditEventV2 createEvent(EntityAuditEventV2 entityAuditEventV2, AtlasEntity entity, EntityAuditActionV2 action, String details) {
entityAuditEventV2.setEntityId(entity.getGuid());
- entityAuditEventV2.setTimestamp(RequestContext.get().getRequestTime());
+ entityAuditEventV2.setTimestamp(System.currentTimeMillis());
entityAuditEventV2.setUser(RequestContext.get().getUser());
entityAuditEventV2.setAction(action);
entityAuditEventV2.setDetails(details);