Fix Search Indexing Empty Stats (#15608)

This commit is contained in:
Mohit Yadav 2024-03-19 18:09:03 +05:30 committed by GitHub
parent 2dd912ab8a
commit b52fdaf05e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -291,7 +291,8 @@ public class SearchIndexApp extends AbstractNativeApplication {
// Update Entity Level Stats
StepStats entityLevelStats = jobDataStats.getEntityStats();
if (entityLevelStats == null) {
entityLevelStats = new StepStats();
entityLevelStats =
new StepStats().withTotalRecords(null).withFailedRecords(null).withSuccessRecords(null);
}
entityLevelStats.withAdditionalProperty(entityType, currentEntityStats);