You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Gabriel Hernandez (JIRA)" <ji...@apache.org> on 2008/07/30 12:25:32 UTC
[jira] Created: (SOLR-668) Snapcleaner removes newest snapshots in
Solaris
Snapcleaner removes newest snapshots in Solaris
-----------------------------------------------
Key: SOLR-668
URL: https://issues.apache.org/jira/browse/SOLR-668
Project: Solr
Issue Type: Bug
Components: replication
Affects Versions: 1.2
Environment: Solaris 10
Reporter: Gabriel Hernandez
Priority: Minor
Fix For: 1.2
When running the snapcleaner script from cron with the -N option, the script is removing the newest snapshots instead of the oldest snapshots. I tweaked and validated this can be corrected by making the following change in the snapcleaner script:
elif [[ -n ${num} ]]
then
logMessage cleaning up all snapshots except for the most recent ${num} ones
unset snapshots count
- snapshots=`ls -cd ${data_dir}/snapshot.* 2>/dev/null`
+ snapshots=`ls -crd ${data_dir}/snapshot.* 2>/dev/null`
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SOLR-668) Snapcleaner removes newest snapshots in
Solaris
Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hoss Man updated SOLR-668:
--------------------------
Fix Version/s: (was: 1.2)
removing "Fix Version" (the issue was not fixed in 1.2)
> Snapcleaner removes newest snapshots in Solaris
> -----------------------------------------------
>
> Key: SOLR-668
> URL: https://issues.apache.org/jira/browse/SOLR-668
> Project: Solr
> Issue Type: Bug
> Components: replication
> Affects Versions: 1.2
> Environment: Solaris 10
> Reporter: Gabriel Hernandez
> Priority: Minor
>
> When running the snapcleaner script from cron with the -N option, the script is removing the newest snapshots instead of the oldest snapshots. I tweaked and validated this can be corrected by making the following change in the snapcleaner script:
> elif [[ -n ${num} ]]
> then
> logMessage cleaning up all snapshots except for the most recent ${num} ones
> unset snapshots count
> - snapshots=`ls -cd ${data_dir}/snapshot.* 2>/dev/null`
> + snapshots=`ls -crd ${data_dir}/snapshot.* 2>/dev/null`
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.