[jira] [Commented] (LUCENE-5228) IndexWriter.addIndexes copies raw files but acquires no locks

2014-01-26 Thread Littlestar (JIRA)

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

Littlestar commented on LUCENE-5228:


not  fixed in 4.6.1? Thanks.

I see stuff like: merge problem with lucene 3 and 4 indices (from solr 
users list), and cannot even think how to respond to these users because so 
many things can go wrong with IndexWriter.addIndexes(Directory)
may related to https://issues.apache.org/jira/browse/LUCENE-5377

 IndexWriter.addIndexes copies raw files but acquires no locks
 -

 Key: LUCENE-5228
 URL: https://issues.apache.org/jira/browse/LUCENE-5228
 Project: Lucene - Core
  Issue Type: Bug
Reporter: Robert Muir
Assignee: Michael McCandless
 Fix For: 5.0, 4.7

 Attachments: LUCENE-5228.patch


 I see stuff like: merge problem with lucene 3 and 4 indices (from solr 
 users list), and cannot even think how to respond to these users because so 
 many things can go wrong with IndexWriter.addIndexes(Directory)
 it currently has in its javadocs:
 NOTE: the index in each Directory must not be changed (opened by a writer) 
 while this method is running. This method does not acquire a write lock in 
 each input Directory, so it is up to the caller to enforce this. 
 This method should be acquiring locks: its copying *RAW FILES*. Otherwise we 
 should remove it. If someone doesnt like that, or is mad because its 10ns 
 slower, they can use NoLockFactory. 



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

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



[jira] [Commented] (LUCENE-5228) IndexWriter.addIndexes copies raw files but acquires no locks

2014-01-26 Thread Littlestar (JIRA)

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

Littlestar commented on LUCENE-5228:


IndexWriter.addIndexes(Directory[]) now acquires the IW write lock 
I think the write lock is too expensive for my app. a SnapshotDeletionPolicy is 
OK for some situation.
is there a way equal to IndexWriter.addIndexes(IndexCommit)?


 IndexWriter.addIndexes copies raw files but acquires no locks
 -

 Key: LUCENE-5228
 URL: https://issues.apache.org/jira/browse/LUCENE-5228
 Project: Lucene - Core
  Issue Type: Bug
Reporter: Robert Muir
Assignee: Michael McCandless
 Fix For: 5.0, 4.7

 Attachments: LUCENE-5228.patch


 I see stuff like: merge problem with lucene 3 and 4 indices (from solr 
 users list), and cannot even think how to respond to these users because so 
 many things can go wrong with IndexWriter.addIndexes(Directory)
 it currently has in its javadocs:
 NOTE: the index in each Directory must not be changed (opened by a writer) 
 while this method is running. This method does not acquire a write lock in 
 each input Directory, so it is up to the caller to enforce this. 
 This method should be acquiring locks: its copying *RAW FILES*. Otherwise we 
 should remove it. If someone doesnt like that, or is mad because its 10ns 
 slower, they can use NoLockFactory. 



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

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



[jira] [Commented] (LUCENE-5228) IndexWriter.addIndexes copies raw files but acquires no locks

2014-01-25 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on LUCENE-5228:
-

Commit 1561404 from [~mikemccand] in branch 'dev/trunk'
[ https://svn.apache.org/r1561404 ]

LUCENE-5228: IndexWriter.addIndexes(Directory[]) now acquires the IW write lock 
on the incoming indices to ensure there are no active IndexWriters in those 
directories

 IndexWriter.addIndexes copies raw files but acquires no locks
 -

 Key: LUCENE-5228
 URL: https://issues.apache.org/jira/browse/LUCENE-5228
 Project: Lucene - Core
  Issue Type: Bug
Reporter: Robert Muir
Assignee: Michael McCandless
 Attachments: LUCENE-5228.patch


 I see stuff like: merge problem with lucene 3 and 4 indices (from solr 
 users list), and cannot even think how to respond to these users because so 
 many things can go wrong with IndexWriter.addIndexes(Directory)
 it currently has in its javadocs:
 NOTE: the index in each Directory must not be changed (opened by a writer) 
 while this method is running. This method does not acquire a write lock in 
 each input Directory, so it is up to the caller to enforce this. 
 This method should be acquiring locks: its copying *RAW FILES*. Otherwise we 
 should remove it. If someone doesnt like that, or is mad because its 10ns 
 slower, they can use NoLockFactory. 



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

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



[jira] [Commented] (LUCENE-5228) IndexWriter.addIndexes copies raw files but acquires no locks

2014-01-25 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on LUCENE-5228:
-

Commit 1561412 from [~mikemccand] in branch 'dev/branches/branch_4x'
[ https://svn.apache.org/r1561412 ]

LUCENE-5228: IndexWriter.addIndexes(Directory[]) now acquires the IW write lock 
on the incoming indices to ensure there are no active IndexWriters in those 
directories

 IndexWriter.addIndexes copies raw files but acquires no locks
 -

 Key: LUCENE-5228
 URL: https://issues.apache.org/jira/browse/LUCENE-5228
 Project: Lucene - Core
  Issue Type: Bug
Reporter: Robert Muir
Assignee: Michael McCandless
 Fix For: 5.0, 4.7

 Attachments: LUCENE-5228.patch


 I see stuff like: merge problem with lucene 3 and 4 indices (from solr 
 users list), and cannot even think how to respond to these users because so 
 many things can go wrong with IndexWriter.addIndexes(Directory)
 it currently has in its javadocs:
 NOTE: the index in each Directory must not be changed (opened by a writer) 
 while this method is running. This method does not acquire a write lock in 
 each input Directory, so it is up to the caller to enforce this. 
 This method should be acquiring locks: its copying *RAW FILES*. Otherwise we 
 should remove it. If someone doesnt like that, or is mad because its 10ns 
 slower, they can use NoLockFactory. 



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

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



[jira] [Commented] (LUCENE-5228) IndexWriter.addIndexes copies raw files but acquires no locks

2014-01-22 Thread Robert Muir (JIRA)

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

Robert Muir commented on LUCENE-5228:
-

Very simple approach! I like it.

 IndexWriter.addIndexes copies raw files but acquires no locks
 -

 Key: LUCENE-5228
 URL: https://issues.apache.org/jira/browse/LUCENE-5228
 Project: Lucene - Core
  Issue Type: Bug
Reporter: Robert Muir
Assignee: Michael McCandless
 Attachments: LUCENE-5228.patch


 I see stuff like: merge problem with lucene 3 and 4 indices (from solr 
 users list), and cannot even think how to respond to these users because so 
 many things can go wrong with IndexWriter.addIndexes(Directory)
 it currently has in its javadocs:
 NOTE: the index in each Directory must not be changed (opened by a writer) 
 while this method is running. This method does not acquire a write lock in 
 each input Directory, so it is up to the caller to enforce this. 
 This method should be acquiring locks: its copying *RAW FILES*. Otherwise we 
 should remove it. If someone doesnt like that, or is mad because its 10ns 
 slower, they can use NoLockFactory. 



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

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



[jira] [Commented] (LUCENE-5228) IndexWriter.addIndexes copies raw files but acquires no locks

2013-10-04 Thread Shai Erera (JIRA)

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

Shai Erera commented on LUCENE-5228:


The problem is with Directories that don't support locking, e.g. on HDFS. But I 
guess NoLockFactory is a reasonable solution for them. I don't think there's 
any performance concern here because addIndexes(Directory...) is doing so much 
work (depending on the index size of course), that acquiring a lock on each 
Directory seems negligible.

Let's do that? And also change the jdoc so explicitly state that and the 
NoLockFactory solution for Directories that cannot support locking?

 IndexWriter.addIndexes copies raw files but acquires no locks
 -

 Key: LUCENE-5228
 URL: https://issues.apache.org/jira/browse/LUCENE-5228
 Project: Lucene - Core
  Issue Type: Bug
Reporter: Robert Muir

 I see stuff like: merge problem with lucene 3 and 4 indices (from solr 
 users list), and cannot even think how to respond to these users because so 
 many things can go wrong with IndexWriter.addIndexes(Directory)
 it currently has in its javadocs:
 NOTE: the index in each Directory must not be changed (opened by a writer) 
 while this method is running. This method does not acquire a write lock in 
 each input Directory, so it is up to the caller to enforce this. 
 This method should be acquiring locks: its copying *RAW FILES*. Otherwise we 
 should remove it. If someone doesnt like that, or is mad because its 10ns 
 slower, they can use NoLockFactory. 



--
This message was sent by Atlassian JIRA
(v6.1#6144)

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