gora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lewi...@apache.org
Subject [1/2] gora git commit: Fix for uncommitted documents which are at last buffer when buffer is not equal to default commit size.
Date Fri, 04 Sep 2015 14:54:35 GMT
Repository: gora
Updated Branches:
  refs/heads/master 6cdbe565f -> 17bb1691e


Fix for uncommitted documents which are at last buffer when buffer is not equal to default
commit size.


Project: http://git-wip-us.apache.org/repos/asf/gora/repo
Commit: http://git-wip-us.apache.org/repos/asf/gora/commit/d5023d5e
Tree: http://git-wip-us.apache.org/repos/asf/gora/tree/d5023d5e
Diff: http://git-wip-us.apache.org/repos/asf/gora/diff/d5023d5e

Branch: refs/heads/master
Commit: d5023d5e998a1aa883a0faf778438d3db22b06b8
Parents: 3cf5502
Author: Furkan KAMACI <furkankamaci@gmail.com>
Authored: Thu Sep 3 14:41:30 2015 +0300
Committer: Furkan KAMACI <furkankamaci@gmail.com>
Committed: Thu Sep 3 14:41:30 2015 +0300

----------------------------------------------------------------------
 .../src/main/java/org/apache/gora/solr/store/SolrStore.java      | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/gora/blob/d5023d5e/gora-solr/src/main/java/org/apache/gora/solr/store/SolrStore.java
----------------------------------------------------------------------
diff --git a/gora-solr/src/main/java/org/apache/gora/solr/store/SolrStore.java b/gora-solr/src/main/java/org/apache/gora/solr/store/SolrStore.java
index f89762c..af27f14 100644
--- a/gora-solr/src/main/java/org/apache/gora/solr/store/SolrStore.java
+++ b/gora-solr/src/main/java/org/apache/gora/solr/store/SolrStore.java
@@ -783,9 +783,7 @@ public class SolrStore<K, T extends PersistentBase> extends DataStoreBase<K,
T>
 
   @Override
   public void close() {
-    // In testing, the index gets closed before the commit in flush() can happen
-    // so an exception gets thrown
-    // flush();
+    flush();
   }
 
   private void add(ArrayList<SolrInputDocument> batch, int commitWithin)


Mime
View raw message