Skip to content

Commit a434a5b

Browse files
committed
Wrap cache in JBrowseLuceneSearch to allow closing of readers
1 parent c8346c2 commit a434a5b

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

mGAP/src/org/labkey/mgap/columnTransforms/LuceneIndexTransform.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
package org.labkey.mgap.columnTransforms;
22

3-
import org.apache.commons.io.FileUtils;
43
import org.jetbrains.annotations.Nullable;
4+
import org.labkey.api.jbrowse.JBrowseService;
55
import org.labkey.api.pipeline.PipelineJobException;
6-
import org.labkey.api.sequenceanalysis.run.SimpleScriptWrapper;
76
import org.labkey.mgap.etl.EtlQueueManager;
87

98
import java.io.File;
10-
import java.io.IOException;
11-
import java.util.Arrays;
129

1310
public class LuceneIndexTransform extends OutputFileTransform
1411
{
@@ -27,6 +24,7 @@ protected File doFileCopy(File f, File subdir, @Nullable String name) throws Pip
2724
// NOTE: lucene is a special case since the DB tracks one file, but we need this whole folder:
2825
File sourceDir = f.getParentFile();
2926
File targetDir = new File(subdir, "LuceneIndex");
27+
JBrowseService.get().clearLuceneCacheEntry(targetDir);
3028
EtlQueueManager.get().queueRsyncCopy(getContainerUser().getContainer(), sourceDir, targetDir);
3129

3230
return new File(targetDir, sourceDir.getName() + "/" + f.getName());

0 commit comments

Comments
 (0)