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
2a441bec
Commit
2a441bec
authored
8 years ago
by
Shwetha GS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1203 'Invalid type definition' due to no new types to be created at…
ATLAS-1203 'Invalid type definition' due to no new types to be created at startup (mneethiraj via shwethags)
parent
698a5652
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
release-log.txt
release-log.txt
+1
-0
ReservedTypesRegistrar.java
...ava/org/apache/atlas/services/ReservedTypesRegistrar.java
+7
-2
No files found.
release-log.txt
View file @
2a441bec
...
...
@@ -9,6 +9,7 @@ ATLAS-1060 Add composite indexes for exact match performance improvements for al
ATLAS-1127 Modify creation and modification timestamps to Date instead of Long(sumasai)
ALL CHANGES:
ATLAS-1203 'Invalid type definition' due to no new types to be created at startup (mneethiraj via shwethags)
ATLAS-1171 Structured, high-level public APIs (mneethiraj via shwethags)
ATLAS-247 Hive Column level lineage (rhbutani,svimal2106 via shwethags)
ATLAS-1184 ReservedTypesRegistrar checks for existence of 1st class type (svimal2106 via shwethags)
...
...
This diff is collapsed.
Click to expand it.
repository/src/main/java/org/apache/atlas/services/ReservedTypesRegistrar.java
View file @
2a441bec
...
...
@@ -68,7 +68,10 @@ public class ReservedTypesRegistrar implements IBootstrapTypesRegistrar {
String
typeDefJSON
=
new
String
(
Files
.
readAllBytes
(
typeDefFile
.
toPath
()),
StandardCharsets
.
UTF_8
);
registerType
(
typeSystem
,
metadataService
,
typeDefFile
.
getAbsolutePath
(),
typeDefJSON
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
LOG
.
error
(
"error while registering types in file "
+
typeDefFile
.
getAbsolutePath
(),
e
);
}
catch
(
AtlasException
e
)
{
LOG
.
error
(
"error while registering types in file "
+
typeDefFile
.
getAbsolutePath
(),
e
);
throw
e
;
}
}
...
...
@@ -119,10 +122,12 @@ public class ReservedTypesRegistrar implements IBootstrapTypesRegistrar {
TypesDef
createTypes
=
TypesUtil
.
getTypesDef
(
ImmutableList
.
copyOf
(
createEnumDefList
),
ImmutableList
.
copyOf
(
createStructDefList
),
ImmutableList
.
copyOf
(
createTraitDefList
),
ImmutableList
.
copyOf
(
createClassDefList
));
if
(!
createTypes
.
isEmpty
())
{
String
createTypeJSON
=
TypesSerialization
.
toJson
(
createTypes
);
if
(
createTypeJSON
!=
null
)
{
if
(
createTypeJSON
!=
null
)
{
metadataService
.
createType
(
createTypeJSON
);
LOG
.
info
(
"Created types definition JSON {}"
,
createTypeJSON
);
}
}
}
}
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