You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Peter Cseh (JIRA)" <ji...@apache.org> on 2018/07/02 14:03:00 UTC

[jira] [Commented] (SOLR-12533) Collection collection fails if metrics are called during core creation

    [ https://issues.apache.org/jira/browse/SOLR-12533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16529958#comment-16529958 ] 

Peter Cseh commented on SOLR-12533:
-----------------------------------

We should initialize the metrics later to avoid this race condition.

> Collection collection fails if metrics are called during core creation
> ----------------------------------------------------------------------
>
>                 Key: SOLR-12533
>                 URL: https://issues.apache.org/jira/browse/SOLR-12533
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: SolrCloud
>    Affects Versions: 7.0
>            Reporter: Peter Cseh
>            Priority: Major
>
> There is a race condition in SorlCore's constructor:
> - the metrics.indexSize call implicitly creates a data/index folder for that core
> - if the data/index folder exists, no segments file will be created
> - the searcher won't start up if there are no segments file in the data/index folder
> This is probably the root cause for SOLR-2130 and SOLR-2801 as well.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org