You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Christine Poerschke (JIRA)" <ji...@apache.org> on 2015/07/01 18:17:04 UTC

[jira] [Comment Edited] (SOLR-7741) SolrIndexerConfig.toMap missing fields

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

Christine Poerschke edited comment on SOLR-7741 at 7/1/15 4:16 PM:
-------------------------------------------------------------------

Hi [~mdrob] - thanks for including my missing fields in your patch.

Am attaching a patch that extends your patch:
* "useCompoundFile" was also missing in {{SolrIndexerConfig.toMap}} (i only noticed that today and so added it)
* the {{SolrIndexConfigTest.testToMap}} started by your patch now randomly chooses between {{solrconfig-warmer.xml}} and {{solrconfig-tieredmergepolicy.xml}} SolrConfig and it checks presence+type for non-Map fields also


was (Author: cpoerschke):
Hi [~mdrob] - thanks for including my missing fields in your patch.

Am attaching a patch that extends your patch:
* "useCompoundFile" was also missing in {{SolrIndexerConfig.toMap}} (i only noticed that today and so added it)
* the {{SolrIndexConfigTest.testToMap}} started by your patch now randomly chooses between {{solrconfig-warmer.xml}} and {{solrconfig-warmer.xml}} SolrConfig and it checks presence+type for non-Map fields also

> SolrIndexerConfig.toMap missing fields
> --------------------------------------
>
>                 Key: SOLR-7741
>                 URL: https://issues.apache.org/jira/browse/SOLR-7741
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: Trunk
>            Reporter: Mike Drob
>             Fix For: Trunk
>
>         Attachments: SOLR-7741.patch, SOLR-7741.patch
>
>
> From the mailing list:
> Mike Drob wrote:
> {quote}
> I was looking through code for unrelated reasons and this line stuck out to me:
> https://github.com/apache/lucene-solr/blob/trunk/solr/core/src/java/org/apache/solr/update/SolrIndexConfig.java#L180
> if(mergeSchedulerInfo != null) m.put("mergeScheduler",mergeSchedulerInfo.toMap()); if(mergePolicyInfo != null) m.put("mergeScheduler",mergePolicyInfo.toMap());
> Are they both supposed to be using the "mergeScheduler" key? If not, happy to open a JIRA and provide the one-line patch.
> {quote}
> Christine Poerschke wrote:
> {quote}
> Follow-on question, also re: SolrIndexConfig's toMap method. The constructor reads "/mergedSegmentWarmer" and "/infoStream" and "/infoStream/@file" elements but the toMap method does not write them.
> Would that be intended or is it maybe an unintended omission? If intended would be great to have a comment in toMap to clarify why/which elements are skipped, so that if/when a new element is added its easier to determine if toMap should write the new element also.
> {quote}



--
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