This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch MINDEXER-127
in repository https://gitbox.apache.org/repos/asf/maven-indexer.git

commit 239874df8ec590a4b31320d063ce2a4ce351966a
Author: Victor Rubezhny <[email protected]>
AuthorDate: Thu May 6 15:06:33 2021 +0200

    [MINDEXER-127] Maven repository indexing error: 
java.nio.channels.OverlappingFileLockException
    
    The fix prevents the openAndWarmup() method of DefaultIndexingContext to be 
invoked twice during purge() method call
    in order to prevent an attempt to lock twice the same incex as this method 
is invoked from a subsequent prepareIndex()
     method call.
    
    Closes #105
    Signed-off-by: Victor Rubezhny <[email protected]>
---
 .../main/java/org/apache/maven/index/context/DefaultIndexingContext.java | 1 -
 1 file changed, 1 deletion(-)

diff --git 
a/indexer-core/src/main/java/org/apache/maven/index/context/DefaultIndexingContext.java
 
b/indexer-core/src/main/java/org/apache/maven/index/context/DefaultIndexingContext.java
index 8e58206..df8d73f 100644
--- 
a/indexer-core/src/main/java/org/apache/maven/index/context/DefaultIndexingContext.java
+++ 
b/indexer-core/src/main/java/org/apache/maven/index/context/DefaultIndexingContext.java
@@ -607,7 +607,6 @@ public class DefaultIndexingContext
     {
         closeReaders();
         deleteIndexFiles( true );
-        openAndWarmup();
         try
         {
             prepareIndex( true );

Reply via email to