[ https://issues.apache.org/jira/browse/SOLR-668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexandre Rafalovitch closed SOLR-668. -------------------------------------- Resolution: Won't Fix This is no longer relevant to the current replication method. > 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 (scripts) > 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 was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org