Skip to content

Commit 57503fb

Browse files
author
Mahesh Kumar Gangula
committed
Issue #000 fix: added more logs to check the issue.
1 parent 6779385 commit 57503fb

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

platform-jobs/samza/distribution/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<dependency>
5454
<groupId>org.ekstep</groupId>
5555
<artifactId>publish-pipeline</artifactId>
56-
<version>0.0.220</version>
56+
<version>0.0.221</version>
5757
<type>tar.gz</type>
5858
<classifier>distribution</classifier>
5959
</dependency>

platform-jobs/samza/publish-pipeline/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<version>1.0-SNAPSHOT</version>
88
</parent>
99
<artifactId>publish-pipeline</artifactId>
10-
<version>0.0.220</version>
10+
<version>0.0.221</version>
1111
<dependencies>
1212
<dependency>
1313
<groupId>org.ekstep</groupId>

platform-jobs/samza/publish-pipeline/src/main/java/org/ekstep/jobs/samza/service/PublishPipelineService.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ private Map<String, Object> mergeMap(Map<String, Object> dataMap, Map<String, Ob
570570
public void enrichCollection(Node node) throws Exception {
571571

572572
String contentId = node.getIdentifier();
573-
LOGGER.info("Processing Collection Content :" + contentId);
573+
LOGGER.info("Processing collection content for enrichment :" + contentId);
574574
Response response = util.getHirerachy(contentId);
575575
if (null != response && null != response.getResult()) {
576576
Map<String, Object> content = (Map<String, Object>) response.getResult().get("content");
@@ -580,7 +580,7 @@ public void enrichCollection(Node node) throws Exception {
580580
leafCount = getLeafNodeCount(content, leafCount);
581581
content.put(ContentAPIParams.leafNodesCount.name(), leafCount);
582582
node.getMetadata().put(ContentAPIParams.leafNodesCount.name(), leafCount);
583-
583+
LOGGER.info("Updated leafNodesCount for content id: " + contentId + " :: " + leafCount);
584584
if(StringUtils.equalsIgnoreCase((String)node.getMetadata().get("visibility"), ContentAPIParams.Parent.name()))
585585
return;
586586

@@ -599,6 +599,9 @@ public void enrichCollection(Node node) throws Exception {
599599
node.getMetadata().put(ContentAPIParams.mimeTypesCount.name(), mimeTypeMap);
600600
node.getMetadata().put(ContentAPIParams.contentTypesCount.name(), contentTypeMap);
601601
node.getMetadata().put(ContentAPIParams.childNodes.name(), childNodes);
602+
LOGGER.info("Updated toc_url, mimeTypesCount, contentTypesCount, childNodes.");
603+
} else {
604+
LOGGER.info("Get hierarchy response is null for content id: "+ contentId + " :: " + response);
602605
}
603606
}
604607

0 commit comments

Comments
 (0)