Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
618cf361
Commit
618cf361
authored
6 years ago
by
Sizhong Du
Committed by
Madhan Neethiraj
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2980: fix HBaseBasedAuditRepository.putEventsV2() to store entity-json string
Signed-off-by:
Madhan Neethiraj
<
madhan@apache.org
>
parent
2b9aa84d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
CassandraBasedAuditRepository.java
...atlas/repository/audit/CassandraBasedAuditRepository.java
+1
-1
HBaseBasedAuditRepository.java
...che/atlas/repository/audit/HBaseBasedAuditRepository.java
+1
-1
No files found.
repository/src/main/java/org/apache/atlas/repository/audit/CassandraBasedAuditRepository.java
View file @
618cf361
...
...
@@ -117,7 +117,7 @@ public class CassandraBasedAuditRepository extends AbstractStorageBasedAuditRepo
BatchStatement
batch
=
new
BatchStatement
();
events
.
forEach
(
event
->
batch
.
add
(
stmt
.
bind
(
event
.
getEntityId
(),
event
.
getTimestamp
(),
event
.
getAction
().
toString
(),
event
.
getUser
(),
event
.
getDetails
(),
(
persistEntityDefinition
?
event
.
getEntity
().
to
String
()
:
null
))));
(
persistEntityDefinition
?
event
.
getEntity
Definition
String
()
:
null
))));
cassSession
.
execute
(
batch
);
}
...
...
This diff is collapsed.
Click to expand it.
repository/src/main/java/org/apache/atlas/repository/audit/HBaseBasedAuditRepository.java
View file @
618cf361
...
...
@@ -189,7 +189,7 @@ public class HBaseBasedAuditRepository extends AbstractStorageBasedAuditReposito
addColumn
(
put
,
COLUMN_TYPE
,
ENTITY_AUDIT_V2
);
if
(
persistEntityDefinition
)
{
addColumn
(
put
,
COLUMN_DEFINITION
,
event
.
getEntity
());
addColumn
(
put
,
COLUMN_DEFINITION
,
event
.
getEntity
DefinitionString
());
}
puts
.
add
(
put
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment