-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If Solr is down when a file is deleted from a draft dataset, reindexing the draft doesn't delete the Solr document for the deleted file #2086
Comments
Requires schema change and re-indexing #2038 Also show output for orphaned files in index/status API call.
@scolapasta please take a look at a06ef62 for a proposed fix (in a branch). This fix requires a Solr schema change and re-indexing in order to do searches on |
@scolapasta I'm going to assign this to you as a reminder to review the commit I mentioned in #2086 (comment) Since that fix requires a change to the Solr schema.xml as well as reindexing, we'll be partially addressing the "making Solr debug fields searchable" issue (#2038) so we may want to make a decision on the list of candidates in that issue as part of this milestone. |
Requires schema change and re-indexing #2038 Also show output for orphaned files in index/status API call.
- Also fix a bug where Integer.MAX_VALUE was intended
I pushed a fix that requires updating the Solr schema.xml . In addition, it's not enough to simply update the schema.xml. The fix is only good for files that were indexed after the Solr schema.xml has been updated. This is because the fix relies on being able to identify a list of files that once were part of a dataset (now orphaned) based on a search across files for a The way I've been testing the bug:
Passing to QA. |
Works!! Closing. |
To fix this bug we might need to first work on #2038 to make the Solr field
parentId
searchable. We need something to search on in order to find and delete the Solr document for a file, which looks something like this:}
That is to say, if you try to find the Solr document based on
parentId
you won't find it (numFound:0):The good news is that
definitionPointDocId
is already searchable so once we find the Solr document for the file, we should be able to also delete the corresponding "permission" document:Related: #702
The text was updated successfully, but these errors were encountered: