You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Lance Norskog (JIRA)" <ji...@apache.org> on 2010/11/02 06:39:23 UTC

[jira] Created: (SOLR-2212) NoMergePolicy class does not load

NoMergePolicy class does not load
---------------------------------

                 Key: SOLR-2212
                 URL: https://issues.apache.org/jira/browse/SOLR-2212
             Project: Solr
          Issue Type: Bug
          Components: multicore
    Affects Versions: 3.1, 4.0
            Reporter: Lance Norskog


Solr cannot use the Lucene NoMergePolicy class. It will not instantiate correctly when loading the core.
Other MergePolicy classes work, including the BalancedSegmentMergePolicy.

This is in trunk and 3.x.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (SOLR-2212) NoMergePolicy class does not load

Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12930243#action_12930243 ] 

Hoss Man commented on SOLR-2212:
--------------------------------

<mergePolicy> (and most of the SolrPlugin stuff) requires that the class specified support a no-arg constructor.

"NoMergePolicy" has no public constructors at all - it seems to expect you to only ever use one of the Static singletons.

> NoMergePolicy class does not load
> ---------------------------------
>
>                 Key: SOLR-2212
>                 URL: https://issues.apache.org/jira/browse/SOLR-2212
>             Project: Solr
>          Issue Type: Bug
>          Components: multicore
>    Affects Versions: 3.1, 4.0
>            Reporter: Lance Norskog
>
> Solr cannot use the Lucene NoMergePolicy class. It will not instantiate correctly when loading the core.
> Other MergePolicy classes work, including the BalancedSegmentMergePolicy.
> This is in trunk and 3.x.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Issue Comment Edited: (SOLR-2212) NoMergePolicy class does not load

Posted by "Lance Norskog (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12931913#action_12931913 ] 

Lance Norskog edited comment on SOLR-2212 at 11/14/10 5:45 PM:
---------------------------------------------------------------

Also, it expects you to tell it whether to use compound files.

This signature structure just plain does not work with the solrconfig.xml structure. The fact that the merge policy has to embed whether to use compound files seems like an information leakage anyway. The MergePolicy returns lists of segments, that's it. Knowing whether to use compound files is extraneous to its mission.



      was (Author: lancenorskog):
    Also, it expects you to tell it whether to use compound files.

This signature structure just plain does not work with the solrconfig.xml structure. The fact that the merge policy has to embed whether to use compound files seems like an information leakage anyway. The MergePolicy returns lists of segments, that's it. Adding whether to use compound files is extraneous and in this case causes problems.


  
> NoMergePolicy class does not load
> ---------------------------------
>
>                 Key: SOLR-2212
>                 URL: https://issues.apache.org/jira/browse/SOLR-2212
>             Project: Solr
>          Issue Type: Bug
>          Components: multicore
>    Affects Versions: 3.1, 4.0
>            Reporter: Lance Norskog
>
> Solr cannot use the Lucene NoMergePolicy class. It will not instantiate correctly when loading the core.
> Other MergePolicy classes work, including the BalancedSegmentMergePolicy.
> This is in trunk and 3.x.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (SOLR-2212) NoMergePolicy class does not load

Posted by "Lance Norskog (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12931913#action_12931913 ] 

Lance Norskog commented on SOLR-2212:
-------------------------------------

Also, it expects you to tell it whether to use compound files.

This signature structure just plain does not work with the solrconfig.xml structure. The fact that the merge policy has to embed whether to use compound files seems like an information leakage anyway. The MergePolicy returns lists of segments, that's it. Adding whether to use compound files is extraneous and in this case causes problems.



> NoMergePolicy class does not load
> ---------------------------------
>
>                 Key: SOLR-2212
>                 URL: https://issues.apache.org/jira/browse/SOLR-2212
>             Project: Solr
>          Issue Type: Bug
>          Components: multicore
>    Affects Versions: 3.1, 4.0
>            Reporter: Lance Norskog
>
> Solr cannot use the Lucene NoMergePolicy class. It will not instantiate correctly when loading the core.
> Other MergePolicy classes work, including the BalancedSegmentMergePolicy.
> This is in trunk and 3.x.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (SOLR-2212) NoMergePolicy class does not load

Posted by "Lance Norskog (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927309#action_12927309 ] 

Lance Norskog commented on SOLR-2212:
-------------------------------------

This test is in trunk/solr/example and branch_3x/solr/example.
I set the MergePolicy in solrconfig.xml to the NoMergePolicy class with this line:
{code}
  <mergePolicy class="org.apache.lucene.index.NoMergePolicy"/>
{code}

When I start solr I get the following stack trace.
{code}
Nov 1, 2010 10:43:40 PM org.apache.solr.common.SolrException log
SEVERE: org.apache.solr.common.SolrException: Error instantiating class: 'org.apache.lucene.index.NoMergePolicy'
	at org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:432)
	at org.apache.solr.update.SolrIndexWriter.init(SolrIndexWriter.java:83)
	at org.apache.solr.update.SolrIndexWriter.<init>(SolrIndexWriter.java:197)
	at org.apache.solr.core.SolrCore.initIndex(SolrCore.java:399)
	at org.apache.solr.core.SolrCore.<init>(SolrCore.java:550)
	at org.apache.solr.core.CoreContainer.create(CoreContainer.java:660)
	at org.apache.solr.core.CoreContainer.load(CoreContainer.java:412)
	at org.apache.solr.core.CoreContainer.load(CoreContainer.java:294)
	at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:243)
	at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:86)
	at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662)
	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
	at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
	at org.mortbay.jetty.Server.doStart(Server.java:224)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.mortbay.start.Main.invokeMain(Main.java:194)
	at org.mortbay.start.Main.start(Main.java:534)
	at org.mortbay.start.Main.start(Main.java:441)
	at org.mortbay.start.Main.main(Main.java:119)
Caused by: java.lang.InstantiationException: org.apache.lucene.index.NoMergePolicy
	at java.lang.Class.newInstance0(Class.java:340)
	at java.lang.Class.newInstance(Class.java:308)
	at org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:429)
	... 34 more

{code}





> NoMergePolicy class does not load
> ---------------------------------
>
>                 Key: SOLR-2212
>                 URL: https://issues.apache.org/jira/browse/SOLR-2212
>             Project: Solr
>          Issue Type: Bug
>          Components: multicore
>    Affects Versions: 3.1, 4.0
>            Reporter: Lance Norskog
>
> Solr cannot use the Lucene NoMergePolicy class. It will not instantiate correctly when loading the core.
> Other MergePolicy classes work, including the BalancedSegmentMergePolicy.
> This is in trunk and 3.x.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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