lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (SOLR-8323) Add CollectionWatcher API to ZkStateReader
Date Thu, 28 Apr 2016 21:46:12 GMT


ASF GitHub Bot commented on SOLR-8323:

Github user dragonsinth commented on a diff in the pull request:
    --- Diff: solr/solrj/src/java/org/apache/solr/common/cloud/ ---
    @@ -131,6 +132,19 @@
       private final Runnable securityNodeListener;
    +  private Map<String, CollectionWatch> collectionWatches = new ConcurrentHashMap<>();
    --- End diff --
    The reason I made a comment about using the concrete type here is that it makes it much
easier to work with as a developer.  When you can see that the static type of this variable
is ConcurrentHashMap, that helps you evaluate the code that touches it.
    For example, when you use IDE features to 'click through' a method call or view the javadoc
on a called method, you get the ConcurrentHashMap version of the javadoc/method instead of
the Map version, which helps you more easily evaluate the correctness.

> Add CollectionWatcher API to ZkStateReader
> ------------------------------------------
>                 Key: SOLR-8323
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: master
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>         Attachments: SOLR-8323.patch, SOLR-8323.patch, SOLR-8323.patch, SOLR-8323.patch
> An API to watch for changes to collection state would be a generally useful thing, both
internally and for client use.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message