[
https://issues.apache.org/jira/browse/SOLR-4998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13699628#comment-13699628
]
Yonik Seeley commented on SOLR-4998:
------------------------------------
{quote}
Collection has Slices
Slices have Shards
{quote}
Currently in the code, Slices have Replicas:
Collection==List<Slice> Slice==List<Replica>
Currently in the external interfaces and documentation, a Slice is a "shard":
collection==List<shard> Shard==List<replica>
So it seems your proposal is to pick neither ;-)
Shard is a term that has been around too long and has too many meanings (which
is normally fine in English since the ambiguity is normally resolved by context
- and there are always tons of ambiguities in both spoken and written English).
In code though, context can be harder to establish and I've been trying to
stay away from "shard" as it has always been ambiguous (meaning either/both
logical and physical).
*If* we wanted to unify the code and external interfaces + documentation, then
the most reasonable thing would seem to be to standardize on the latter - that
way there are no back compat issues (at least at the non-code level).
What does make sense at least is making the code consistent (existing uses of
Shard changed to Slice or Replica depending on it's actual meaning). This
disambiguation would need to be done anyway, even if we decided we wanted to
change either Slice or Replica to Shard in the code.
> Make the use of Slice and Shard consistent across the code and document base
> ----------------------------------------------------------------------------
>
> Key: SOLR-4998
> URL: https://issues.apache.org/jira/browse/SOLR-4998
> Project: Solr
> Issue Type: Improvement
> Components: SolrCloud
> Affects Versions: 4.3, 4.3.1
> Reporter: Anshum Gupta
>
> The interchangeable use of Slice and Shard is pretty confusing at times. We
> should define each separately and use the apt term whenever we do so.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]