On 4/13/2014 10:05 PM, Modassar Ather wrote:
> I indexed few documents under a core of Solr 4.6.1 instance deployed on
> Tomcat and copied the same index to other Solr instance with a core having
> same configurations.
> Before copying the index, source Solr instance was stopped. But when I
> start the other instance with the copied index it throws following
> exception due to which the core is not getting loaded.
> 
> Apr 10, 2014 1:00:28 PM org.apache.solr.update.
> SolrIndexWriter finalize
> SEVERE: SolrIndexWriter was not closed prior to finalize(), indicates a bug
> -- POSSIBLE RESOURCE LEAK!!!
> Apr 10, 2014 1:00:28 PM org.apache.solr.update.SolrIndexWriter close
> SEVERE: Error closing IndexWriter, trying rollback
> java.lang.NullPointerException
>         at
> org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:981)
>         at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:931)
>         at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:893)
>         at
> org.apache.solr.update.SolrIndexWriter.close(SolrIndexWriter.java:132)
>         at
> org.apache.solr.update.SolrIndexWriter.finalize(SolrIndexWriter.java:185)
>         at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
>         at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:101)
>         at java.lang.ref.Finalizer.access$100(Finalizer.java:32)
>         at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:190)

Did you delete any existing index and tlog directories on the target
server before you copied the index over?  If you are using soft commits
at all, you should copy the tlog directory in addition to the index
directory.

Are there any other error messages in the log?  Is there more detail to
this error?

Thanks,
Shawn

Reply via email to