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
5de10081
Commit
5de10081
authored
Jul 26, 2016
by
Suma Shivaprasad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-1059 Change log level to debug for search APIs(sumasai)
parent
2dba5fea
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
release-log.txt
release-log.txt
+1
-0
GraphBackedDiscoveryService.java
...he/atlas/discovery/graph/GraphBackedDiscoveryService.java
+2
-2
QueryProcessor.scala
...rc/main/scala/org/apache/atlas/query/QueryProcessor.scala
+1
-1
GraphCentricQueryBuilder.java
...s/titan/graphdb/query/graph/GraphCentricQueryBuilder.java
+1
-3
No files found.
release-log.txt
View file @
5de10081
...
...
@@ -6,6 +6,7 @@ INCOMPATIBLE CHANGES:
ALL CHANGES:
ATLAS-1059 Change log level to debug for search APIs(sumasai)
ATLAS-1049 Fix validation while filtering by supertypes(mneethiraj via sumasai)
ATLAS-1053 Fix issues flagged by Coverity scan - potential NPE (mneethiraj via sumasai)
ATLAS-1052 Fix NPE in HiveHook due to null Session State (sumasai)
...
...
repository/src/main/java/org/apache/atlas/discovery/graph/GraphBackedDiscoveryService.java
View file @
5de10081
...
...
@@ -121,7 +121,7 @@ public class GraphBackedDiscoveryService implements DiscoveryService {
}
public
GremlinQueryResult
evaluate
(
String
dslQuery
,
QueryParams
queryParams
)
throws
DiscoveryException
{
LOG
.
info
(
"Executing dsl query={}"
,
dslQuery
);
LOG
.
debug
(
"Executing dsl query={}"
,
dslQuery
);
try
{
Either
<
Parsers
.
NoSuccess
,
Expressions
.
Expression
>
either
=
QueryParser
.
apply
(
dslQuery
,
queryParams
);
if
(
either
.
isRight
())
{
...
...
@@ -164,7 +164,7 @@ public class GraphBackedDiscoveryService implements DiscoveryService {
@Override
@GraphTransaction
public
List
<
Map
<
String
,
String
>>
searchByGremlin
(
String
gremlinQuery
)
throws
DiscoveryException
{
LOG
.
info
(
"Executing gremlin query={}"
,
gremlinQuery
);
LOG
.
debug
(
"Executing gremlin query={}"
,
gremlinQuery
);
ScriptEngineManager
manager
=
new
ScriptEngineManager
();
ScriptEngine
engine
=
manager
.
getEngineByName
(
"gremlin-groovy"
);
...
...
repository/src/main/scala/org/apache/atlas/query/QueryProcessor.scala
View file @
5de10081
...
...
@@ -31,7 +31,7 @@ object QueryProcessor {
val
q
=
new
GremlinTranslator
(
e1
,
gP
).
translate
()
LOG
.
debug
(
"Query: "
+
e1
)
LOG
.
debug
(
"Expression Tree:\n"
+
e1
.
treeString
)
LOG
.
info
(
"Gremlin Query: "
+
q
.
queryStr
)
LOG
.
debug
(
"Gremlin Query: "
+
q
.
queryStr
)
new
GremlinEvaluator
(
q
,
gP
,
g
).
evaluate
()
}
...
...
titan/src/main/java/com/thinkaurelius/titan/graphdb/query/graph/GraphCentricQueryBuilder.java
View file @
5de10081
...
...
@@ -321,7 +321,7 @@ public class GraphCentricQueryBuilder implements TitanGraphQuery<GraphCentricQue
if
(
coveredClauses
.
isEmpty
())
isSorted
=
candidateSupportsSort
;
coveredClauses
.
addAll
(
candidateSubcover
);
log
.
info
(
"Index chosen for query {} {} "
,
bestCandidate
.
isCompositeIndex
()
?
"COMPOSITE"
:
"MIXED"
,
coveredClauses
);
log
.
debug
(
"Index chosen for query {} {} "
,
bestCandidate
.
isCompositeIndex
()
?
"COMPOSITE"
:
"MIXED"
,
coveredClauses
);
if
(
bestCandidate
.
isCompositeIndex
())
{
jointQuery
.
add
((
CompositeIndexType
)
bestCandidate
,
serializer
.
getQuery
((
CompositeIndexType
)
bestCandidate
,(
List
<
Object
[]>)
candidateSubcondition
));
...
...
@@ -454,6 +454,4 @@ public class GraphCentricQueryBuilder implements TitanGraphQuery<GraphCentricQue
return
true
;
}
}
}
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