You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by ni...@apache.org on 2020/02/26 09:16:02 UTC
[atlas] 02/02: ATLAS-3601 :- No LABEL_DELETE event is audited when
last label is deleted.
This is an automated email from the ASF dual-hosted git repository.
nixon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git
commit c99e15b3711e0aebb4c1db086553f915ecd471d1
Author: Pinal Shah <pi...@freestoneinfotech.com>
AuthorDate: Thu Jan 30 15:40:06 2020 +0530
ATLAS-3601 :- No LABEL_DELETE event is audited when last label is deleted.
---
.../atlas/repository/audit/AbstractStorageBasedAuditRepository.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/repository/src/main/java/org/apache/atlas/repository/audit/AbstractStorageBasedAuditRepository.java b/repository/src/main/java/org/apache/atlas/repository/audit/AbstractStorageBasedAuditRepository.java
index f6b741b..0deb729 100644
--- a/repository/src/main/java/org/apache/atlas/repository/audit/AbstractStorageBasedAuditRepository.java
+++ b/repository/src/main/java/org/apache/atlas/repository/audit/AbstractStorageBasedAuditRepository.java
@@ -158,7 +158,7 @@ public abstract class AbstractStorageBasedAuditRepository implements Service, En
protected byte[] getKey(String id, Long ts, int index) {
assert id != null : "entity id can't be null";
assert ts != null : "timestamp can't be null";
- String keyStr = id + FIELD_SEPARATOR + ts + FIELD_SEPARATOR + index;
+ String keyStr = id + FIELD_SEPARATOR + ts + FIELD_SEPARATOR + index + FIELD_SEPARATOR + System.currentTimeMillis();
return Bytes.toBytes(keyStr);
}