This is an automated email from the ASF dual-hosted git repository.

sidmishra pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/master by this push:
     new 8edec03  ATLAS-4343:[Entity Audits] 'Propagated Classification Added' 
Timestamp is < 'Entity Created' Timestamp
8edec03 is described below

commit 8edec03affcc9881a3d55f0f3cf9893829bed3bd
Author: Radhika Kundam <[email protected]>
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 <[email protected]>
---
 .../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);

Reply via email to