You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/02/28 14:31:04 UTC
[jira] [Commented] (SOLR-7178) OverseerAutoReplicaFailoverThread
compares Integer objects using ==
[ https://issues.apache.org/jira/browse/SOLR-7178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14341521#comment-14341521 ]
ASF subversion and git services commented on SOLR-7178:
-------------------------------------------------------
Commit 1662935 from shalin@apache.org in branch 'dev/trunk'
[ https://svn.apache.org/r1662935 ]
SOLR-7178: OverseerAutoReplicaFailoverThread compares Integer objects using ==
> OverseerAutoReplicaFailoverThread compares Integer objects using ==
> -------------------------------------------------------------------
>
> Key: SOLR-7178
> URL: https://issues.apache.org/jira/browse/SOLR-7178
> Project: Solr
> Issue Type: Bug
> Components: SolrCloud
> Affects Versions: 4.10.3, 5.0
> Reporter: Shalin Shekhar Mangar
> Assignee: Shalin Shekhar Mangar
> Priority: Trivial
> Fix For: Trunk, 5.1
>
>
> As noted on SOLR-6923, OverseerAutoReplicaFailoverThread has:
> {code}
> if (lastClusterStateVersion == clusterState.getZkClusterStateVersion() && baseUrlForBadNodes.size() == 0 &&
> liveNodes.equals(clusterState.getLiveNodes())) {
> ...
> }
> {code}
> According to JLS this is guaranteed to work only when the integers are between -128 and 127.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org