Updated Branches: refs/heads/master 878381ed6 -> b2d9f8bcf
BLUR:147 call mayBeMerge on the indexwriter Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/b2d9f8bc Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/b2d9f8bc Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/b2d9f8bc Branch: refs/heads/master Commit: b2d9f8bcf522ccaff64a3c20b2c65d2eee4b1232 Parents: 878381e Author: Gagan <[email protected]> Authored: Sat Jun 22 22:50:00 2013 +0530 Committer: Gagan <[email protected]> Committed: Sat Jun 22 22:50:00 2013 +0530 ---------------------------------------------------------------------- .../src/main/java/org/apache/blur/manager/writer/IndexImporter.java | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b2d9f8bc/blur-core/src/main/java/org/apache/blur/manager/writer/IndexImporter.java ---------------------------------------------------------------------- diff --git a/blur-core/src/main/java/org/apache/blur/manager/writer/IndexImporter.java b/blur-core/src/main/java/org/apache/blur/manager/writer/IndexImporter.java index 5f7d148..82af733 100644 --- a/blur-core/src/main/java/org/apache/blur/manager/writer/IndexImporter.java +++ b/blur-core/src/main/java/org/apache/blur/manager/writer/IndexImporter.java @@ -129,6 +129,7 @@ public class IndexImporter extends TimerTask implements Closeable { indexWriter.deleteDocuments(new Term(BlurConstants.DELETE_MARKER, BlurConstants.DELETE_MARKER_VALUE)); LOG.info("Finishing import [{0}], commiting on [{1}/{2}]", directory, shard, table); indexWriter.commit(); + indexWriter.maybeMerge(); LOG.info("Cleaning up old directory [{0}] for [{1}/{2}]", dirPath, shard, table); fileSystem.delete(dirPath, true); LOG.info("Import complete on [{0}/{1}]", shard, table);
