Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/usergrid
* 'master' of https://git-wip-us.apache.org/repos/asf/usergrid: Fix re-index memory leak with flatmap observable and speed up re-index. Implement better self leave for akka clustering if JVM goes down. Bump akka version to 2.4.10 ( lastest current stable version) Move failure detector settings to cluster overall. Temporarily stop downing nodes when unreachable at application layer. Update the threshold settings. Add new dispatcher for blocking io actors. allow no password when creating admin users when SSO-enabled Load properties into Guice by using the getProperty method instead of generic putAll from Map superclass as it getProperty could be overridden add count to paged organizations get, and fix limit=1000 Refactor superuser authentication/login such that permissions are handled more appropriately, allowing access to all parts of the system. Enhance superuser basic auth filter to login to shiro with a token just like the sysadmin tokens. Adding paging to get all orgs endpoint. Enhance Akka cluster so it properly downs nodes that are restarted but still ok on the network. Don't load all orgs when validating sysadmin creds. Project: http://git-wip-us.apache.org/repos/asf/usergrid/repo Commit: http://git-wip-us.apache.org/repos/asf/usergrid/commit/3709535f Tree: http://git-wip-us.apache.org/repos/asf/usergrid/tree/3709535f Diff: http://git-wip-us.apache.org/repos/asf/usergrid/diff/3709535f Branch: refs/heads/master Commit: 3709535f96c2bb5fde4e71f997e95f14e7cb8354 Parents: 7fdba4a 77d2026 Author: Dave Johnson <snoopd...@apache.org> Authored: Thu Oct 6 10:57:12 2016 -0400 Committer: Dave Johnson <snoopd...@apache.org> Committed: Thu Oct 6 10:57:12 2016 -0400 ---------------------------------------------------------------------- .../asyncevents/AsyncEventServiceImpl.java | 20 +--- .../index/IndexProcessorFig.java | 2 +- .../index/ReIndexServiceImpl.java | 37 +++--- stack/corepersistence/actorsystem/pom.xml | 12 +- .../persistence/actorsystem/ActorSystemFig.java | 41 ++++++- .../actorsystem/ActorSystemManager.java | 2 +- .../actorsystem/ActorSystemManagerImpl.java | 57 ++++++--- .../actorsystem/ClusterListener.java | 116 +++++++++++++++++++ stack/corepersistence/collection/pom.xml | 12 +- .../EntityCollectionManagerFactoryImpl.java | 2 + .../uniquevalues/UniqueValuesRouter.java | 4 +- .../uniquevalues/UniqueValuesServiceImpl.java | 10 +- .../apache/usergrid/rest/ShutdownListener.java | 11 +- .../organizations/OrganizationsResource.java | 48 ++++++-- .../security/SecuredResourceFilterFactory.java | 35 +++--- .../shiro/filters/BasicAuthSecurityFilter.java | 54 ++++++++- .../rest/applications/ApplicationDeleteIT.java | 1 - .../usergrid/rest/applications/SecurityIT.java | 31 +++++ .../activities/ActivityResourceIT.java | 5 - .../test/resource/endpoints/NamedResource.java | 9 ++ .../cassandra/ManagementServiceImpl.java | 5 +- .../AbstractPasswordCredentials.java | 3 +- .../shiro/credentials/AdminUserPassword.java | 2 + .../shiro/principals/AdminUserPrincipal.java | 25 +--- .../usergrid/services/AbstractService.java | 8 ++ 25 files changed, 408 insertions(+), 144 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/usergrid/blob/3709535f/stack/core/src/main/java/org/apache/usergrid/corepersistence/asyncevents/AsyncEventServiceImpl.java ----------------------------------------------------------------------