Description
While starting to look at SOLR-11299 I noticed some brittleness in assumptions about Strings that refer to a collection. Sometimes they are in fact references to comma separated lists, which appears was added with the introduction of collection aliases (an alias can refer to a comma delimited list). So Java's type system kind of goes out the window when we do this. In one case this leads to a bug – CloudSolrClient will throw an NPE if you try to write to such an alias. Sending an update via HTTP will allow it and send it to the first in the list.
So this issue is about refactoring and some little improvements pertaining to Aliases.java plus certain key spots that deal with collection references. I don't think I want to go as far as changing the public SolrJ API except to adding documentation on what's possible.
Attachments
Attachments
Issue Links
- contains
-
SOLR-10181 CREATEALIAS and DELETEALIAS commands consistency problems under concurrency
- Resolved
- is depended upon by
-
SOLR-11488 Do not allow collections and aliases to have the same name
- Open
- is part of
-
SOLR-11299 Time partitioned collections (umbrella issue)
- Open
- is related to
-
SOLR-11218 Fail and return an error when attempting to delete a collection that's part of an alias
- Closed
- relates to
-
SOLR-11292 Querying against an alias can lead to incorrect routing
- Open
-
SOLR-10181 CREATEALIAS and DELETEALIAS commands consistency problems under concurrency
- Resolved