Skip to content

Conversation

vladak
Copy link
Member

@vladak vladak commented Feb 18, 2025

Lately I have been debugging a case of failed indexing due to the failed check

//
// Adding document with the same date of a pre-existing document which is being removed
// will lead to index corruption (duplicate documents). Hence, make the indexer to fail hard.
//
throw new IndexerFault(
String.format("attempting to add file '%s' with date matching deleted document: %s",
path, time));
}
and realized the isStrictlyNewerThanDocument() should really due better in terms of logging.

For the record, in my case (indexing the linux Git repository) it failed due to getDocument() returning null.

@vladak vladak added the indexer label Feb 18, 2025
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Feb 18, 2025
@vladak vladak force-pushed the index_doc_check_logging branch from 01f0cd6 to 2b0050e Compare February 18, 2025 13:19
@vladak vladak merged commit e96aead into oracle:master Feb 18, 2025
9 checks passed
@vladak vladak deleted the index_doc_check_logging branch February 18, 2025 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

indexer OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant