[jira] Issue Comment Edited: (LUCENE-2790) IndexWriter should call MP.useCompoundFile and not LogMP.getUseCompoundFile

2010-12-06 Thread Uwe Schindler (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-2790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12967183#action_12967183
 ] 

Uwe Schindler edited comment on LUCENE-2790 at 12/6/10 10:54 AM:
-

I would simply disable the tests. Reflection should only be used when mock 
classes are used that affect thousands of tests. There are already lots of 
tests disabled.

  was (Author: thetaphi):
I would supply disable the tests. Reflection should only be used when mock 
classes are used that affect thousands of tests. There are already lots of 
tests disabled.
  
 IndexWriter should call MP.useCompoundFile and not LogMP.getUseCompoundFile
 ---

 Key: LUCENE-2790
 URL: https://issues.apache.org/jira/browse/LUCENE-2790
 Project: Lucene - Java
  Issue Type: Improvement
  Components: Index
Reporter: Shai Erera
Assignee: Shai Erera
Priority: Minor
 Fix For: 3.1, 4.0

 Attachments: LUCENE-2790-3x.patch, LUCENE-2790.patch, 
 LUCENE-2790.patch, LUCENE-2790.patch, LUCENE-2790.patch, LUCENE-2790.patch, 
 LUCENE-2790.patch, LUCENE-2790.patch


 Spin off from here: 
 http://www.gossamer-threads.com/lists/lucene/java-dev/112311.
 I will attach a patch shortly that addresses the issue on trunk.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] Issue Comment Edited: (LUCENE-2790) IndexWriter should call MP.useCompoundFile and not LogMP.getUseCompoundFile

2010-12-02 Thread Earwin Burrfoot (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-2790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12966108#action_12966108
 ] 

Earwin Burrfoot edited comment on LUCENE-2790 at 12/2/10 8:12 AM:
--

Check this patch out.
It changes useCompoundFile(SIS, SI) to respect noCFSRatio and drops 
useCompoundFile from OneMerge, so all decisions about using compound files now 
happen in a single place.
It also highlights the problem with your patch - when calling useCompoundFile 
from addIndexes, you should hold a lock, so segmentInfos won't be modified 
while mergePolicy inspects them.

  was (Author: earwin):
Check this patch out.
It moves noCFS ratio to useCompoundFile(SIS, SI) and drops useCompoundFile from 
OneMerge, so all decisions about using compound files now happen in a single 
place.
It also highlights the problem with your patch - when calling useCompoundFile 
from addIndexes, you should hold a lock, so segmentInfos won't be modified 
while mergePolicy inspects them.
  
 IndexWriter should call MP.useCompoundFile and not LogMP.getUseCompoundFile
 ---

 Key: LUCENE-2790
 URL: https://issues.apache.org/jira/browse/LUCENE-2790
 Project: Lucene - Java
  Issue Type: Improvement
  Components: Index
Reporter: Shai Erera
Assignee: Shai Erera
Priority: Minor
 Fix For: 3.1, 4.0

 Attachments: LUCENE-2790.patch, LUCENE-2790.patch


 Spin off from here: 
 http://www.gossamer-threads.com/lists/lucene/java-dev/112311.
 I will attach a patch shortly that addresses the issue on trunk.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org