Skip to content

Commit c943707

Browse files
committed
Revert "Wrap cache in JBrowseLuceneSearch to allow closing of readers"
This reverts commit a434a5b.
1 parent a434a5b commit c943707

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

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

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

3+
import org.apache.commons.io.FileUtils;
34
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;
67
import org.labkey.mgap.etl.EtlQueueManager;
78

89
import java.io.File;
10+
import java.io.IOException;
11+
import java.util.Arrays;
912

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

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

0 commit comments

Comments
 (0)