lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Varun Thacker (JIRA)" <>
Subject [jira] [Updated] (SOLR-6775) Creating backup snapshot null pointer exception
Date Wed, 11 Feb 2015 10:16:13 GMT


Varun Thacker updated SOLR-6775:
    Attachment: SOLR-6775_test_fix.patch

Patch which doesn't attempt to cleanup the temp directory since {{LuceneTestCase.createTempDir}}
states that "The folder will be automatically removed after the test class completes successfully."

> Creating backup snapshot null pointer exception
> -----------------------------------------------
>                 Key: SOLR-6775
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: replication (java)
>    Affects Versions: 4.10
>         Environment: Linux Server, Java version "1.7.0_21", Solr version 4.10.0
>            Reporter: Ryan Hesson
>            Assignee: Shalin Shekhar Mangar
>              Labels: snapshot, solr
>             Fix For: Trunk, 5.1
>         Attachments: SOLR-6775.patch, SOLR-6775.patch, SOLR-6775_test_fix.patch
> I set up Solr Replication. I have one master on a server, one slave on another server.
The replication of data appears functioning correctly. The issue is when the master SOLR tries
to create a snapshot backup it gets a null pointer exception. 
> org.apache.solr.handler.SnapShooter createSnapshot method calls org.apache.solr.handler.SnapPuller.delTree(snapShotDir);
at line 162 and the exception happens within  org.apache.solr.handler.SnapPuller at line 1026
because snapShotDir is null. 
> Here is the actual log output:
> 58319963 [qtp12610551-16] INFO  org.apache.solr.core.SolrCore  - newest commit generation
= 349
> 58319983 [Thread-19] INFO  org.apache.solr.handler.SnapShooter  - Creating backup snapshot...
> Exception in thread "Thread-19" java.lang.NullPointerException
>         at org.apache.solr.handler.SnapPuller.delTree(
>         at org.apache.solr.handler.SnapShooter.createSnapshot(
>         at org.apache.solr.handler.SnapShooter$
> I may have missed how to set the directory in the documentation but I've looked around
without much luck. I thought the process was to use the same directory as the index data for
the snapshots. Is this a known issue with this release or am I missing how to set the value?
If someone could tell me how to set snapshotdir or confirm that it is an issue and a different
way of backing up the index is needed it would be much appreciated. 

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message