[jira] [Commented] (SOLR-6214) Snapshots numberToKeep param only keeps n-1 backups
[ https://issues.apache.org/jira/browse/SOLR-6214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14317975#comment-14317975 ] ASF subversion and git services commented on SOLR-6214: --- Commit 1659204 from sha...@apache.org in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1659204 ] SOLR-6214: Fix mistake in failure message > Snapshots numberToKeep param only keeps n-1 backups > --- > > Key: SOLR-6214 > URL: https://issues.apache.org/jira/browse/SOLR-6214 > Project: Solr > Issue Type: Bug >Affects Versions: 4.9 >Reporter: Mathias H. >Assignee: Shalin Shekhar Mangar >Priority: Minor > Fix For: Trunk, 5.1 > > Attachments: SOLR-6214.patch, SOLR-6214.patch, SOLR-6214.patch > > > The numberToKeep param for snapshots doesn't work anymore. If you set the > param to '2', only '1' backup is kept. > In the ReplicationHandler in line 377 snapShooter.validateCreateSnapshot(); > creates an empty directory for the new snapshot. The deleteOldBackups() > method in Snapshooter which will be executed before the backup is created, > now sees the two directories an deletes the old one. But this is wrong > because the empty directory for the new backup should not be considered. -- 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
[jira] [Commented] (SOLR-6214) Snapshots numberToKeep param only keeps n-1 backups
[ https://issues.apache.org/jira/browse/SOLR-6214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14317973#comment-14317973 ] ASF subversion and git services commented on SOLR-6214: --- Commit 1659203 from sha...@apache.org in branch 'dev/trunk' [ https://svn.apache.org/r1659203 ] SOLR-6214: Fix mistake in failure message > Snapshots numberToKeep param only keeps n-1 backups > --- > > Key: SOLR-6214 > URL: https://issues.apache.org/jira/browse/SOLR-6214 > Project: Solr > Issue Type: Bug >Affects Versions: 4.9 >Reporter: Mathias H. >Assignee: Shalin Shekhar Mangar >Priority: Minor > Fix For: Trunk, 5.1 > > Attachments: SOLR-6214.patch, SOLR-6214.patch, SOLR-6214.patch > > > The numberToKeep param for snapshots doesn't work anymore. If you set the > param to '2', only '1' backup is kept. > In the ReplicationHandler in line 377 snapShooter.validateCreateSnapshot(); > creates an empty directory for the new snapshot. The deleteOldBackups() > method in Snapshooter which will be executed before the backup is created, > now sees the two directories an deletes the old one. But this is wrong > because the empty directory for the new backup should not be considered. -- 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
[jira] [Commented] (SOLR-6214) Snapshots numberToKeep param only keeps n-1 backups
[ https://issues.apache.org/jira/browse/SOLR-6214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14317971#comment-14317971 ] Shalin Shekhar Mangar commented on SOLR-6214: - Fixed, thanks! > Snapshots numberToKeep param only keeps n-1 backups > --- > > Key: SOLR-6214 > URL: https://issues.apache.org/jira/browse/SOLR-6214 > Project: Solr > Issue Type: Bug >Affects Versions: 4.9 >Reporter: Mathias H. >Assignee: Shalin Shekhar Mangar >Priority: Minor > Fix For: Trunk, 5.1 > > Attachments: SOLR-6214.patch, SOLR-6214.patch, SOLR-6214.patch > > > The numberToKeep param for snapshots doesn't work anymore. If you set the > param to '2', only '1' backup is kept. > In the ReplicationHandler in line 377 snapShooter.validateCreateSnapshot(); > creates an empty directory for the new snapshot. The deleteOldBackups() > method in Snapshooter which will be executed before the backup is created, > now sees the two directories an deletes the old one. But this is wrong > because the empty directory for the new backup should not be considered. -- 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
[jira] [Commented] (SOLR-6214) Snapshots numberToKeep param only keeps n-1 backups
[ https://issues.apache.org/jira/browse/SOLR-6214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14317954#comment-14317954 ] Varun Thacker commented on SOLR-6214: - Small typo in line 235 of TestReplicationHandlerBackup - {{fail("Backup should have been cleaned up because " + backupKeepParamName + " was set to 2.");}} should be {{fail("Backup should have been cleaned up because " + backupKeepParamName + " was set to 1.");}} > Snapshots numberToKeep param only keeps n-1 backups > --- > > Key: SOLR-6214 > URL: https://issues.apache.org/jira/browse/SOLR-6214 > Project: Solr > Issue Type: Bug >Affects Versions: 4.9 >Reporter: Mathias H. >Assignee: Shalin Shekhar Mangar >Priority: Minor > Fix For: Trunk, 5.1 > > Attachments: SOLR-6214.patch, SOLR-6214.patch, SOLR-6214.patch > > > The numberToKeep param for snapshots doesn't work anymore. If you set the > param to '2', only '1' backup is kept. > In the ReplicationHandler in line 377 snapShooter.validateCreateSnapshot(); > creates an empty directory for the new snapshot. The deleteOldBackups() > method in Snapshooter which will be executed before the backup is created, > now sees the two directories an deletes the old one. But this is wrong > because the empty directory for the new backup should not be considered. -- 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
[jira] [Commented] (SOLR-6214) Snapshots numberToKeep param only keeps n-1 backups
[ https://issues.apache.org/jira/browse/SOLR-6214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14317900#comment-14317900 ] ASF subversion and git services commented on SOLR-6214: --- Commit 1659181 from sha...@apache.org in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1659181 ] SOLR-6214: Snapshots numberToKeep param only keeps n-1 backups > Snapshots numberToKeep param only keeps n-1 backups > --- > > Key: SOLR-6214 > URL: https://issues.apache.org/jira/browse/SOLR-6214 > Project: Solr > Issue Type: Bug >Affects Versions: 4.9 >Reporter: Mathias H. >Assignee: Shalin Shekhar Mangar >Priority: Minor > Fix For: Trunk, 5.1 > > Attachments: SOLR-6214.patch, SOLR-6214.patch, SOLR-6214.patch > > > The numberToKeep param for snapshots doesn't work anymore. If you set the > param to '2', only '1' backup is kept. > In the ReplicationHandler in line 377 snapShooter.validateCreateSnapshot(); > creates an empty directory for the new snapshot. The deleteOldBackups() > method in Snapshooter which will be executed before the backup is created, > now sees the two directories an deletes the old one. But this is wrong > because the empty directory for the new backup should not be considered. -- 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
[jira] [Commented] (SOLR-6214) Snapshots numberToKeep param only keeps n-1 backups
[ https://issues.apache.org/jira/browse/SOLR-6214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14317896#comment-14317896 ] ASF subversion and git services commented on SOLR-6214: --- Commit 1659180 from sha...@apache.org in branch 'dev/trunk' [ https://svn.apache.org/r1659180 ] SOLR-6214: Snapshots numberToKeep param only keeps n-1 backups > Snapshots numberToKeep param only keeps n-1 backups > --- > > Key: SOLR-6214 > URL: https://issues.apache.org/jira/browse/SOLR-6214 > Project: Solr > Issue Type: Bug >Affects Versions: 4.9 >Reporter: Mathias H. >Assignee: Shalin Shekhar Mangar >Priority: Minor > Fix For: Trunk, 5.1 > > Attachments: SOLR-6214.patch, SOLR-6214.patch, SOLR-6214.patch > > > The numberToKeep param for snapshots doesn't work anymore. If you set the > param to '2', only '1' backup is kept. > In the ReplicationHandler in line 377 snapShooter.validateCreateSnapshot(); > creates an empty directory for the new snapshot. The deleteOldBackups() > method in Snapshooter which will be executed before the backup is created, > now sees the two directories an deletes the old one. But this is wrong > because the empty directory for the new backup should not be considered. -- 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
[jira] [Commented] (SOLR-6214) Snapshots numberToKeep param only keeps n-1 backups
[ https://issues.apache.org/jira/browse/SOLR-6214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14084290#comment-14084290 ] Ramana commented on SOLR-6214: -- Shalin, Updated the patch with test case. Please verify. > Snapshots numberToKeep param only keeps n-1 backups > --- > > Key: SOLR-6214 > URL: https://issues.apache.org/jira/browse/SOLR-6214 > Project: Solr > Issue Type: Bug >Affects Versions: 4.9 >Reporter: Mathias H. >Assignee: Shalin Shekhar Mangar >Priority: Minor > Attachments: SOLR-6214.patch > > > The numberToKeep param for snapshots doesn't work anymore. If you set the > param to '2', only '1' backup is kept. > In the ReplicationHandler in line 377 snapShooter.validateCreateSnapshot(); > creates an empty directory for the new snapshot. The deleteOldBackups() > method in Snapshooter which will be executed before the backup is created, > now sees the two directories an deletes the old one. But this is wrong > because the empty directory for the new backup should not be considered. -- This message was sent by Atlassian JIRA (v6.2#6252) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Commented] (SOLR-6214) Snapshots numberToKeep param only keeps n-1 backups
[ https://issues.apache.org/jira/browse/SOLR-6214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14069867#comment-14069867 ] Shalin Shekhar Mangar commented on SOLR-6214: - Thanks Mathias and Ramana. We need a test as well before it can be committed. > Snapshots numberToKeep param only keeps n-1 backups > --- > > Key: SOLR-6214 > URL: https://issues.apache.org/jira/browse/SOLR-6214 > Project: Solr > Issue Type: Bug >Affects Versions: 4.9 >Reporter: Mathias H. >Assignee: Shalin Shekhar Mangar >Priority: Minor > Attachments: SOLR-6214.patch > > > The numberToKeep param for snapshots doesn't work anymore. If you set the > param to '2', only '1' backup is kept. > In the ReplicationHandler in line 377 snapShooter.validateCreateSnapshot(); > creates an empty directory for the new snapshot. The deleteOldBackups() > method in Snapshooter which will be executed before the backup is created, > now sees the two directories an deletes the old one. But this is wrong > because the empty directory for the new backup should not be considered. -- This message was sent by Atlassian JIRA (v6.2#6252) - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org