Skip to content

Commit

Permalink
_ Fix Data Issue
Browse files Browse the repository at this point in the history
(cherry picked from commit 7d4d7ac)
  • Loading branch information
mohityadav766 committed Mar 6, 2024
1 parent 164c087 commit 031c0f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ private void entitiesReIndex(JobExecutionContext jobExecutionContext) {
try {
resultList = paginatedEntitiesSource.readNext(null);
if (!resultList.getData().isEmpty()) {
searchIndexSink.write(entityProcessor.process(resultList, contextData), contextData);
if (!resultList.getErrors().isEmpty()) {
searchIndexSink.write(entityProcessor.process(resultList, contextData), contextData);
throw new SearchIndexException(
new IndexingError()
.withErrorSource(READER)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ private ResultList<? extends EntityInterface> read(String cursor) throws SearchI
} else {
submittedRecords = batchSize;
String decodedCursor = RestUtil.decodeCursor(cursor);
this.cursor = RestUtil.encodeCursor(String.valueOf(Integer.parseInt(decodedCursor) + batchSize));
this.cursor =
RestUtil.encodeCursor(String.valueOf(Integer.parseInt(decodedCursor) + batchSize));
updateStats(0, batchSize);
}
IndexingError indexingError =
Expand Down

0 comments on commit 031c0f6

Please sign in to comment.