Re: SnapshotDeletionPolicy usage

2008-02-05 Thread Michael McCandless
jm wrote: Thanks for the reply Mike. You can also wrap any other deletion policy (it doesn't have to be KeepOnlyLastCommit). When you want to do a backup, make sure to do try/finally, ie: IndexCommitPoint cp = dp.snapshot(); try { Collection files = cp.getFileNames(); }

Re: SnapshotDeletionPolicy usage

2008-02-05 Thread jm
Thanks for the reply Mike. > You can also wrap any other deletion policy (it doesn't have to be > KeepOnlyLastCommit). > > When you want to do a backup, make sure to do try/finally, ie: > >IndexCommitPoint cp = dp.snapshot(); >try { > Collection files = cp.getFileNames(); > >

Re: SnapshotDeletionPolicy usage

2008-02-05 Thread Michael McCandless
jm wrote: Hi guys, I want to make use of the possibylity of hot backups in 2.3. If i understand correctly, the only thing i need to do is to open the writers with SnapshotDeletionPolicy, is that correct? Right. SnapshotDeletionPolicy dp = new SnapshotDeletionPolicy(new KeepOnlyLastCommitDe

SnapshotDeletionPolicy usage

2008-02-05 Thread jm
Hi guys, I want to make use of the possibylity of hot backups in 2.3. If i understand correctly, the only thing i need to do is to open the writers with SnapshotDeletionPolicy, is that correct? SnapshotDeletionPolicy dp = new SnapshotDeletionPolicy(new KeepOnlyLastCommitDeletionPolicy()); final I