Skip to content
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

SOLR-16860: Remove collection -> synthetic core mapping in Coordinator Node upon collection deletion #1754

Merged

Conversation

patsonluk
Copy link
Contributor

https://issues.apache.org/jira/browse/SOLR-16860

Description

Similar to #1752 , the mapping of collection -> synthetic core should be removed from Coordinator Node upon collection deletion. Otherwise query to such deleted collection would not throw SolrException of Collection not found.

Solution

Remove the collection from collectionVsCoreNameMapping on zk notification on collection removal

Tests

Added extra test condition in AddWatch

Checklist

Please review the following and check all that apply:

  • I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
  • I have created a Jira issue and added the issue ID to my pull request title.
  • I have given Solr maintainers access to contribute to my PR branch. (optional but recommended)
  • I have developed this patch against the main branch.
  • I have run ./gradlew check.
  • I have added tests for my changes.
  • I have added documentation for the Reference Guide

Copy link
Contributor

@justinrsweeney justinrsweeney left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@justinrsweeney
Copy link
Contributor

@patsonluk Can you include updates to CHANGES.txt for this Jira: https://issues.apache.org/jira/browse/SOLR-16860 in the 9.3.0 section?

@patsonluk
Copy link
Contributor Author

patsonluk commented Jul 5, 2023

@patsonluk Can you include updates to CHANGES.txt for this Jira: https://issues.apache.org/jira/browse/SOLR-16860 in the 9.3.0 section?

Ah thank you for the reminder! fedbee2

@justinrsweeney justinrsweeney merged commit 6094fb2 into apache:main Jul 6, 2023
2 of 3 checks passed
justinrsweeney added a commit that referenced this pull request Jul 6, 2023
…r Node upon collection deletion (#1754)

* CoordinatorHttpSolrCall should remove collection from mapping upon collection deletion

* Updated CHANGES.txt

---------

Co-authored-by: Justin Sweeney <justinsweeney@fullstory.com>
justinrsweeney added a commit to cowpaths/fullstory-solr that referenced this pull request Jul 6, 2023
…r Node upon collection deletion (apache#1754)

* CoordinatorHttpSolrCall should remove collection from mapping upon collection deletion

* Updated CHANGES.txt

---------

Co-authored-by: Justin Sweeney <justinsweeney@fullstory.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants