remove refresh
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/234f873d Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/234f873d Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/234f873d Branch: refs/heads/USERGRID-593 Commit: 234f873d081fbec570787b89556dbc8337baeea2 Parents: b4d67fc Author: Shawn Feldman <sfeld...@apache.org> Authored: Fri Apr 24 14:22:04 2015 -0600 Committer: Shawn Feldman <sfeld...@apache.org> Committed: Fri Apr 24 14:22:04 2015 -0600 ---------------------------------------------------------------------- .../apache/usergrid/corepersistence/CpEntityManagerFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/234f873d/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpEntityManagerFactory.java ---------------------------------------------------------------------- diff --git a/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpEntityManagerFactory.java b/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpEntityManagerFactory.java index f08bce4..e480c22 100644 --- a/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpEntityManagerFactory.java +++ b/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpEntityManagerFactory.java @@ -165,7 +165,7 @@ public class CpEntityManagerFactory implements EntityManagerFactory, Application em.getApplication(); } - entityIndex.refreshAsync().toBlocking().last(); +// entityIndex.refreshAsync(); } catch (Exception ex) { throw new RuntimeException("Fatal error creating management application", ex); @@ -259,7 +259,7 @@ public class CpEntityManagerFactory implements EntityManagerFactory, Application EntityManager appEm = getEntityManager( applicationId); appEm.create(applicationId, TYPE_APPLICATION, properties); appEm.resetRoles(); - entityIndex.refreshAsync().toBlocking().last(); + // entityIndex.refreshAsync();//.toBlocking().last(); // create application info entity in the management app