Skip to content

DIS-3002: Prevent delta import from incrementing lastChangeProcessed - #81

Merged
mdnoble73 merged 3 commits into
26.10.00from
work/26.10.00/DIS-3002
Oct 6, 2026
Merged

mdnoble73 merged 3 commits into
26.10.00from
work/26.10.00/DIS-3002

Conversation

@dd217

@dd217 dd217 commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

This fixes an issue with Symphony and Evolve ILS indexers where delta imports update the lastChangedProcessed. This PR restricts updating lastChangedProcessed only during full imports, and will only reset lastChangedProcessed back to zero if we're processing the current full export.

Testing was performed on a Symphony ILS per the testing documentation listed within the corresponding JIRA. Prairie Lakes does not have a method to test the Evolve ILS indexing code. https://aspen-discovery.atlassian.net/browse/DIS-3002

@mdnoble73 mdnoble73 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great, just a few little fixes

logEntry.incErrors("Error processing individual record on record " + numRecordsRead + " of " + curBibFile.getAbsolutePath() + " the last record processed was " + lastRecordProcessed + " trying to continue", me);
}
if (numRecordsRead % 250 == 0) {
if (isFullExportFile && numRecordsRead % 250 == 0) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dd217 Could you update this to save the results even if the full export file is not running? That helps to ensure that it is obvious that the indexer is still running.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. I moved the isFullExportFile into a nested if. This way we're not running db updates on a value that never changes.

logEntry.incRecordsWithInvalidMarc("Error processing record index " + numRecordsRead + " of " + curBibFile.getAbsolutePath() + " the last record processed was " + lastRecordProcessed + " trying to continue" + me);
}
if (numRecordsRead % 250 == 0) {
if (isFullExportFile && numRecordsRead % 250 == 0) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dd217 Could you update this to save the results even if the full export file is not running? That helps to ensure that it is obvious that the indexer is still running.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. I moved the isFullExportFile into a nested if. This way we're not running db updates on a value that never changes.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dd217 no need to update the version release file since these yaml files get automatically built in for the advance features

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File reverted

@mdnoble73 mdnoble73 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you!

@mdnoble73
mdnoble73 merged commit d488372 into 26.10.00 Oct 6, 2026
7 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants