Repository navigation
fix: keep document content out of the failed-file warning and record a rejection once - #34
Merged
Merged
Conversation
…a rejection once The warning for a file that failed logged the whole data map. It now names the repository and path, as the failure URL does, with the exception. An exception that reports with isRecorded() that its failure URLs are already stored loses that when it is copied to remove credentials from its message. The data store now asks the original and stores no further failure URL for it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
RuntimeException, which loses the mark. The file that happened to fill the batch then gets one more failure URL. This happens whenever the redaction changes the message, for example:?or#right after the host and an@later, such ashttps://viewer.example.com?file=logo@2x.png(the batch is shared by the data configurations of a job, so it need not be a Git document);Change
isRecorded(), and stores nothing if it says yes. The redaction itself, and everything that is logged or stored, is as before. The method is looked up by name, so there is no compile-time dependency on fix(indexing): record a rejected document of a data store crawl as its own failure URL fess#4037; with a Fess that does not have it, failure URLs are stored as before.Tests
mvn formatter:format license:format package: 68 tests pass.IndexUpdateCallbackImpl,IndexingHelperandFailureUrlService(the storage of the records stubbed) and documents rejected by OpenSearch 3.10.1: both examples above gave two failure URLs before and one after, and an ordinary URL gave one both times. This check is not part of the pull request.CrawlingAccessExceptionand the recorded rejection are covered as described above.