[jira] Commented: (LUCENE-702) Disk full during addIndexes(Directory[]) can corrupt index

2006-12-12 Thread Ning Li (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-702?page=comments#action_12457858 ] Ning Li commented on LUCENE-702: > This is actually intentional: I don't want to write to the same > segments_N filename, ever, on the possibility that a reader may

[jira] Commented: (LUCENE-702) Disk full during addIndexes(Directory[]) can corrupt index

2006-12-12 Thread Michael McCandless (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-702?page=comments#action_12457691 ] Michael McCandless commented on LUCENE-702: --- Thanks for the review Ning! > 1 In the two rollbacks in mergeSegments (where inTransaction is > false), the

[jira] Commented: (LUCENE-702) Disk full during addIndexes(Directory[]) can corrupt index

2006-12-11 Thread Ning Li (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-702?page=comments#action_12457520 ] Ning Li commented on LUCENE-702: It looks good. My two cents: 1 In the two rollbacks in mergeSegments (where inTransaction is false), the segmentInfos' generation

[jira] Commented: (LUCENE-702) Disk full during addIndexes(Directory[]) can corrupt index

2006-11-07 Thread Ning Li (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-702?page=comments#action_12448006 ] Ning Li commented on LUCENE-702: > I think we should try to make all of the addIndexes calls (and more > generally any call to Lucene) "transactional". Agree. A tr

[jira] Commented: (LUCENE-702) Disk full during addIndexes(Directory[]) can corrupt index

2006-11-07 Thread Michael McCandless (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-702?page=comments#action_12447968 ] Michael McCandless commented on LUCENE-702: --- I think we should try to make all of the addIndexes calls (and more generally any call to Lucene) "transactio

[jira] Commented: (LUCENE-702) Disk full during addIndexes(Directory[]) can corrupt index

2006-11-01 Thread Michael McCandless (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-702?page=comments#action_12446376 ] Michael McCandless commented on LUCENE-702: --- That seems like a reasonable approach? At least the index would be consistent (ie, loadable). Though, if y

[jira] Commented: (LUCENE-702) Disk full during addIndexes(Directory[]) can corrupt index

2006-11-01 Thread Ning Li (JIRA)
[ http://issues.apache.org/jira/browse/LUCENE-702?page=comments#action_12446307 ] Ning Li commented on LUCENE-702: A possible solution to this issue is to check, when writing segment infos to "segments" in directory d, whether dir of a segment i