[
https://issues.apache.org/jira/browse/SOLR-346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12677810#action_12677810
]
Jason Wambach commented on SOLR-346:
------------------------------------
The patched line should be:
name=`perl -e 'chdir q|'${data_dir}'|; print ((sort grep
{/^snapshot[.][1-9][0-9]{13}$/} <*>)[-1])'`
not
name=`perl -e 'chdir q|${data_dir}|; print ((sort grep
{/^snapshot[.][1-9][0-9]{13}$/} <*>)[-1])'`
The latter will not properly evaluate the data_dir env variable.
> need to improve snapinstaller to ignore non-snapshots in data directory
> -----------------------------------------------------------------------
>
> Key: SOLR-346
> URL: https://issues.apache.org/jira/browse/SOLR-346
> Project: Solr
> Issue Type: Improvement
> Components: replication (scripts)
> Affects Versions: 1.2, 1.3
> Reporter: Bill Au
> Assignee: Bill Au
> Priority: Minor
> Fix For: 1.3.1
>
> Attachments: solr-346.patch
>
>
> http://www.mail-archive.com/[email protected]/msg05734.html
> > latest snapshot /opt/solr/data/temp-snapshot.20070816120113 already
> > installed
> A directory in the Solr data directory is causing snapinstaller to fail.
> Snapinstaller should be improved to ignore any much non-snapshot as possible.
> It can use a regular expression to look for snapshot.dddddddddddddd where d
> is a digit.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.