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-17535: Deprecate ClusterState.forEachCollection #2854

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

dsmiley
Copy link
Contributor

@dsmiley dsmiley commented Nov 8, 2024

Use collectionStream() instead. Redirect callers. A simple refactoring.

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

Use collectionStream() instead.  Redirect callers.  A simple refactoring.
@@ -425,7 +425,10 @@ public Stream<DocCollection> collectionStream() {
/**
* Calls {@code consumer} with a resolved {@link DocCollection}s for all collections. Use this
* sparingly in case there are many collections.
*
* @deprecated see {@link #collectionStream()}
Copy link
Member

Choose a reason for hiding this comment

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

If this method was introduced a few days ago (can't remember), I think it can be removed rather than deprecated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It has existed for some releases, thus I deprecate it.

@dsmiley
Copy link
Contributor Author

dsmiley commented Nov 8, 2024

I'll merge this Monday in case there are any further comments, but I wouldn't anticipate any for this simple one.

@dsmiley dsmiley merged commit c694258 into apache:main Nov 12, 2024
4 checks passed
@dsmiley dsmiley deleted the clusterStateForEachCollection branch November 12, 2024 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants