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
1eb99543
Commit
1eb99543
authored
6 years ago
by
Ashutosh Mestry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-2909: ChangeMarker updated during initialization.
parent
7ffbec1a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
11 deletions
+9
-11
AtlasServerService.java
...rg/apache/atlas/repository/impexp/AtlasServerService.java
+2
-7
AtlasTypeDefGraphStoreV2.java
...s/repository/store/graph/v2/AtlasTypeDefGraphStoreV2.java
+1
-1
ExportServiceTest.java
...org/apache/atlas/repository/impexp/ExportServiceTest.java
+1
-3
RequestContext.java
...er-api/src/main/java/org/apache/atlas/RequestContext.java
+5
-0
No files found.
repository/src/main/java/org/apache/atlas/repository/impexp/AtlasServerService.java
View file @
1eb99543
...
...
@@ -88,13 +88,8 @@ public class AtlasServerService {
}
@GraphTransaction
public
AtlasServer
save
(
AtlasServer
server
)
{
try
{
return
dataAccess
.
save
(
server
);
}
catch
(
AtlasBaseException
e
)
{
return
server
;
}
public
AtlasServer
save
(
AtlasServer
server
)
throws
AtlasBaseException
{
return
dataAccess
.
save
(
server
);
}
@GraphTransaction
...
...
This diff is collapsed.
Click to expand it.
repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasTypeDefGraphStoreV2.java
View file @
1eb99543
...
...
@@ -524,7 +524,7 @@ public class AtlasTypeDefGraphStoreV2 extends AtlasTypeDefGraphStore {
}
private
String
getCurrentUser
()
{
String
ret
=
RequestContext
.
get
().
ge
tUser
();
String
ret
=
RequestContext
.
get
Curren
tUser
();
if
(
StringUtils
.
isBlank
(
ret
))
{
ret
=
System
.
getProperty
(
"user.name"
);
...
...
This diff is collapsed.
Click to expand it.
repository/src/test/java/org/apache/atlas/repository/impexp/ExportServiceTest.java
View file @
1eb99543
...
...
@@ -95,13 +95,11 @@ public class ExportServiceTest extends ExportImportTestBase {
public
void
setupTest
()
throws
IOException
,
AtlasBaseException
{
RequestContext
.
clear
();
RequestContext
.
get
().
setUser
(
TestUtilsV2
.
TEST_USER
,
null
);
ZipFileResourceTestUtils
.
loadBaseModel
(
typeDefStore
,
typeRegistry
);
basicSetup
(
typeDefStore
,
typeRegistry
);
}
@BeforeClass
public
void
setupSampleData
()
throws
AtlasBaseException
{
entityStore
=
new
AtlasEntityStoreV2
(
deleteHandler
,
typeRegistry
,
mockChangeNotifier
,
graphMapper
);;
AtlasTypesDef
sampleTypes
=
TestUtilsV2
.
defineDeptEmployeeTypes
();
AtlasTypesDef
typesToCreate
=
AtlasTypeDefStoreInitializer
.
getTypesToCreate
(
sampleTypes
,
typeRegistry
);
...
...
This diff is collapsed.
Click to expand it.
server-api/src/main/java/org/apache/atlas/RequestContext.java
View file @
1eb99543
...
...
@@ -93,6 +93,11 @@ public class RequestContext {
CURRENT_CONTEXT
.
remove
();
}
public
static
String
getCurrentUser
()
{
RequestContext
context
=
CURRENT_CONTEXT
.
get
();
return
context
!=
null
?
context
.
getUser
()
:
null
;
}
public
String
getUser
()
{
return
user
;
}
...
...
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