Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
sb-learning-platform
Commits
153f35e1
Unverified
Commit
153f35e1
authored
2 years ago
by
Anil Gupta
Committed by
GitHub
2 years ago
Browse files
Options
Download
Plain Diff
Issue #KN-427 merge: Merge pull request #1837 from Jayaprakash8887/release-5.2.0
Issue #KN-427 debug: Sync Tool data
parents
efde7083
98bba214
prasath-release-5.2.0_RC6
release-5.2.0_RC7
release-5.2.0_RC6
release-5.2.0_RC5
release-5.2.0_RC4
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
platform-modules/actors/src/main/java/org/sunbird/learning/util/ControllerUtil.java
+2
-0
...c/main/java/org/sunbird/learning/util/ControllerUtil.java
platform-tools/spikes/sync-tool/src/main/java/org/sunbird/sync/tool/mgr/CSPMigrationMessageGenerator.java
+4
-0
...g/sunbird/sync/tool/mgr/CSPMigrationMessageGenerator.java
with
6 additions
and
0 deletions
+6
-0
platform-modules/actors/src/main/java/org/sunbird/learning/util/ControllerUtil.java
+
2
−
0
View file @
153f35e1
...
...
@@ -426,10 +426,12 @@ public class ControllerUtil extends BaseLearningManager {
sc
.
setStartPosition
(
startPosition
);
if
(!
filters
.
isEmpty
()
&&
filters
.
size
()>
0
)
sc
.
addMetadata
(
MetadataCriterion
.
create
(
filters
));
System
.
out
.
println
(
"ControllerUtil:: getNodes:: sc:: "
+
sc
.
toString
());
Request
req
=
getRequest
(
graphId
,
GraphEngineManagers
.
SEARCH_MANAGER
,
"searchNodes"
,
GraphDACParams
.
search_criteria
.
name
(),
sc
);
req
.
put
(
GraphDACParams
.
get_tags
.
name
(),
true
);
Response
listRes
=
getResponse
(
req
);
System
.
out
.
println
(
"ControllerUtil:: getNodes:: listRes:: "
+
listRes
);
if
(
checkError
(
listRes
))
return
null
;
else
{
...
...
This diff is collapsed.
Click to expand it.
platform-tools/spikes/sync-tool/src/main/java/org/sunbird/sync/tool/mgr/CSPMigrationMessageGenerator.java
+
4
−
0
View file @
153f35e1
...
...
@@ -82,6 +82,9 @@ public class CSPMigrationMessageGenerator {
stopLimit
=
batchSize
;
}
else
stopLimit
=
limit
;
}
else
stopLimit
=
total
;
System
.
out
.
println
(
"CSPMigrationMessageGenerator:: generateMgrMsg:: stopLimit: "
+
stopLimit
+
" || total: "
+
total
);
boolean
found
=
true
;
while
(
found
&&
start
<
stopLimit
)
{
List
<
Node
>
nodes
=
null
;
...
...
@@ -102,6 +105,7 @@ public class CSPMigrationMessageGenerator {
Thread
.
sleep
(
delay
);
}
}
else
{
System
.
out
.
println
(
"CSPMigrationMessageGenerator:: generateMgrMsg:: Breaking Event Generation Loop!"
);
found
=
false
;
break
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets