Skip to content
This repository was archived by the owner on Aug 20, 2025. It is now read-only.
Open
Changes from 1 commit
Commits
Show all changes
2662 commits
Select commit Hold shift + click to select a range
1e6fb1e
Make sure we skip over deleted shards if there are multiple together.
Aug 29, 2016
09bcce5
Make sure we skip over deleted shards on iterator initialization.
Aug 29, 2016
4b01bc8
Make sure root shard cannot be set to compacted=false in ShardManager…
Aug 30, 2016
a3e8946
Allow admin users to get tokens using credentials when SSO providers …
Aug 30, 2016
0e0f805
fix for CollectionIterator tool orphaned connections deletion
Aug 30, 2016
394958f
collection iterator
Aug 30, 2016
620e837
Merge branch 'hotfix-20160819' of https://git-wip-us.apache.org/repos…
Aug 30, 2016
7408f3d
Make CollectionIterator tool use graph manager.
Aug 30, 2016
2f21b31
Handle empty collections in CollectionIterator.
Aug 30, 2016
1e925c0
Fix test for SSO enabled Usergrid when generating admin tokens.
Aug 30, 2016
23cfde0
Add additional logging if an edge is being written past the shard end…
Aug 31, 2016
f73ce4a
Allow GET /management/me with local UG tokens when External SSO is en…
Aug 31, 2016
9520496
fix duplicate user test to use random usernames in case DB cleanup not
Aug 31, 2016
4275db0
Don't shut down full actor system when the JVM exists ( this affects …
Sep 1, 2016
058d33a
Merge branch 'hotfix-20160819' of https://git-wip-us.apache.org/repos…
Sep 1, 2016
69cfbbd
Move shard logging statement to TRACE level.
Sep 1, 2016
9bb0ae6
Use StringUtils.isEmpty() to determine if region is not set.
snoopdave Sep 1, 2016
f4b7ac6
Set non-clustered unique value verification loading back to the non-c…
Sep 1, 2016
c97a200
Rename the cluster authoritative region parameters/methods to be more…
Sep 1, 2016
9fae803
Update test for collection level authoritative region setting.
Sep 1, 2016
ae39eca
Moving Swift SDK to https://github.com/apache/usergrid-swift.
Sep 1, 2016
aa0353d
Merge branch 'hotfix-20160819'
Sep 2, 2016
1a080a2
Fix UniqueValueManager tool to work with datastax driver in the uniqu…
Sep 2, 2016
2550c96
Moving Python SDK to https://github.com/apache/usergrid-python
Sep 2, 2016
c182968
Moving the Node.js SDK to https://github.com/apache/usergrid-nodejs.
Sep 2, 2016
fa590f5
Moving the Javascript SDK to https://github.com/apache/usergrid-javas…
Sep 2, 2016
d2f04b4
Moving the Java SDK to https://github.com/apache/usergrid-java
Sep 2, 2016
49e0f50
Moving the .NET SDK to https://github.com/apache/usergrid-dotnet
Sep 2, 2016
ae56841
Merge commit 'refs/pull/556/head' of github.com:apache/usergrid
Sep 2, 2016
fdc10b7
Moving the Android SDK to https://github.com/apache/usergrid-android
Sep 2, 2016
9943e4b
Removing the old Java SDK.
Sep 2, 2016
867060f
Moving older SDKs to a difference location and updating main README t…
Sep 2, 2016
461076c
Fixing links to point to mirrors.
snoopdave Sep 2, 2016
1894d61
Fix issue with admin user confirmation flag not working when trying t…
Sep 7, 2016
d090154
Merge branch 'hotfix-20160819'
Sep 7, 2016
b567014
Fix reactivateTest and handle re-activation differently from auto-act…
Sep 7, 2016
efb5bfb
Merge branch 'hotfix-20160819'
Sep 7, 2016
a8cd381
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/user…
snoopdave Sep 7, 2016
ef51f3d
Use URLs (like admin reset password URL) from properties if they are
Sep 7, 2016
5fdce93
Fix NPE when user doesn't exist after lookup from the unique value in…
Sep 8, 2016
fbcdada
Add support for application and organization client credentials to be…
Sep 8, 2016
72dcd48
Add unique value index update option to UniqueValueManager tool.
Sep 8, 2016
d915f55
Merge branch 'hotfix-20160819'
Sep 8, 2016
1574b3a
Make TableDefinition into an interface, move to cassandra-all 2.1.14
snoopdave Sep 9, 2016
9016fd2
Move under org.apache.usergrid.persistence package in preparation for…
snoopdave Sep 9, 2016
016b7fa
Adding paging to get all orgs endpoint. Enhance Akka cluster so it p…
Sep 10, 2016
e6600b8
Enhance superuser basic auth filter to login to shiro with a token ju…
Sep 10, 2016
079898f
Refactor superuser authentication/login such that permissions are han…
Sep 10, 2016
09c8103
add count to paged organizations get, and fix limit=1000
Sep 12, 2016
4c0c176
Load properties into Guice by using the getProperty method instead of…
Aug 19, 2016
3075dce
Initial integration of Qakka into Usergrid Queue module, and implemen…
snoopdave Sep 13, 2016
f47a5f6
Changes to make Queue / Hakka tests run with fewer intermittent failu…
snoopdave Sep 14, 2016
7fdba4a
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/user…
snoopdave Sep 14, 2016
ffeadb2
Merge branch 'master' into usergrid-1318-queue
snoopdave Sep 14, 2016
fdb7c27
allow no password when creating admin users when SSO-enabled
Sep 14, 2016
ee0dda4
Still some intermittent failures in the queue module, but now able to…
snoopdave Sep 14, 2016
9947d48
Merge branch 'hotfix-20160819'
Sep 16, 2016
483ca0f
switch Qakka to using two keyspaces, the original replicated Applicat…
snoopdave Sep 16, 2016
447b60d
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/user…
snoopdave Sep 16, 2016
99dbfc2
Fixes to get all tests passing again.
snoopdave Sep 16, 2016
79c5499
Move router producer registration to CpEntityManagerFactory
snoopdave Sep 16, 2016
6f983a4
Don't include test classes in prod release
snoopdave Sep 16, 2016
832b505
Don't init queue in constructor
snoopdave Sep 16, 2016
18e4305
Changes to get Qakka using same injector as rest of Usergrid
snoopdave Sep 16, 2016
e09e749
Exclude logback-classic as it was borking our logging setup.
snoopdave Sep 17, 2016
03eb312
Adding distributedQueueManager.init() to CpEntityManagerFactry startu…
snoopdave Sep 17, 2016
a0b0f71
Update bootstrap/init logic so avoid race conditions in writing a new…
Sep 17, 2016
c08e8f0
Make ReplicatedIndexAlias serializable
snoopdave Sep 19, 2016
434e53e
Implement configurable long polling for Qakka queue gets
snoopdave Sep 20, 2016
6c204b9
Ensure local keyspace has unique name per datacenter / region.
snoopdave Sep 20, 2016
8b79fb8
Introduce maxTtl for queue message and message payload data, default …
snoopdave Sep 20, 2016
9306f12
Complete message counter and add support for getQueueDepth() in Qakka…
snoopdave Sep 21, 2016
727ff1d
When writing to queue, if in-memory queue is empty then refresh will …
snoopdave Sep 21, 2016
c08e02a
Use same timeout value as old queue implementation did
snoopdave Sep 22, 2016
00eb139
Make DatabaseQueueMessage serializable because it is sent in Akka mes…
snoopdave Sep 22, 2016
2cd8ecb
Now supports elasticsearch.queue_impl=MULTIREGION setting instead of …
snoopdave Sep 23, 2016
10ac8d0
Add new dispatcher for blocking io actors.
Sep 23, 2016
2a89d2d
Update the threshold settings.
Sep 23, 2016
50b936d
Move failure detector settings to cluster overall. Temporarily stop d…
Sep 26, 2016
027e40d
Bump akka version to 2.4.10 ( lastest current stable version)
Sep 26, 2016
33319f3
Implement better self leave for akka clustering if JVM goes down.
Sep 26, 2016
5a19ba9
Change to use proper Guice injection instead of static injector kludge.
snoopdave Sep 30, 2016
ef8899a
Fix re-index memory leak with flatmap observable and speed up re-index.
Oct 1, 2016
77d2026
Merge branch 'hotfix-20160819'
Oct 1, 2016
781b894
Fixes to get tests running consistently.
snoopdave Oct 3, 2016
4d45d1c
Fixes to get tests running consistently.
snoopdave Oct 3, 2016
85cc934
Add ability to start initial re-index seek with the UNIX timestamp. …
Oct 4, 2016
5db402d
Revert "Add ability to start initial re-index seek with the UNIX time…
Oct 4, 2016
f8c92f6
Add a utility queue to the async event service for things like re-index.
Oct 4, 2016
a4cc63f
Make sure that 2nd hop index event lands on utility queue if it was c…
Oct 4, 2016
88d429f
Improve error handling so that a failure to ack one messages does not…
snoopdave Oct 5, 2016
81233b0
Fix logic to compare timestamps, not UUIDs and to zero-out the "since…
snoopdave Oct 5, 2016
1f28e2a
Logging improvements
snoopdave Oct 5, 2016
bd5835b
Blackout my change, initializing in constructor causes Guice problems…
snoopdave Oct 5, 2016
a90a0bb
Return to using asynchronous actor for in-memory queue refresh job.
snoopdave Oct 5, 2016
fe08fa7
Ensure that injector is not used in Akka constructors to avoid "canno…
snoopdave Oct 5, 2016
d215328
Ensure that injector is not used in Akka constructors to avoid "canno…
snoopdave Oct 5, 2016
e328584
Logging improvements
snoopdave Oct 5, 2016
202d5be
Queue info REST end-point
snoopdave Oct 5, 2016
fbce160
Ensure correct keyspace names used
snoopdave Oct 5, 2016
a254ee6
Logging improvements, fix to CassandraConfig
snoopdave Oct 6, 2016
907fd0c
Logging improvements, fix to CassandraConfig
snoopdave Oct 6, 2016
3709535
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/user…
snoopdave Oct 6, 2016
71fe06f
Merge branch 'master' into usergrid-1318-queue
snoopdave Oct 6, 2016
c65f903
Merge branch 'hotfix-20160819'
Oct 6, 2016
7be8c27
Add total-time metrics, handle Ack requests via WriterRouter, use C* …
snoopdave Oct 10, 2016
5d37ed5
Formatting, debug log statements, etc.
snoopdave Oct 10, 2016
7f3b2da
Fix QueueRefresher & concurrency problem in MessageCounterSerialization.
snoopdave Oct 10, 2016
63561ee
Minor test improvements
snoopdave Oct 10, 2016
9f2863f
Use akka blocking io dispatcher in routers
snoopdave Oct 10, 2016
041109f
Another counter concurrency fix, plus test stabilization changes
snoopdave Oct 11, 2016
775257d
Fix unique values code to use GuiceActorProducer correctly.
snoopdave Oct 11, 2016
2afaa92
Use CQL batch statement for timeout operation as well.
snoopdave Oct 11, 2016
f56e1b0
Adding concurrent tests for shard and message counters.
snoopdave Oct 12, 2016
f8c3a2d
Minor refactoring, renaming and debug logging changes.
snoopdave Oct 13, 2016
a30e1a5
Configurable Password Policy and 5 supporting JUnit tests.
snoopdave Oct 19, 2016
9c5f599
Tools to remove an Admin User from an Organization using the manageme…
snoopdave Oct 20, 2016
04e49da
Merge commit 'refs/pull/560/head' of github.com:apache/usergrid
Oct 20, 2016
48d306f
Ensure the admin invited to org email is sent even when external SSO …
Oct 20, 2016
1abafe7
Add missing bad_confirmation_token.jsp
snoopdave Oct 20, 2016
cb0dc69
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/user…
snoopdave Oct 20, 2016
3dbc2e9
Merge branch 'asf-site'
snoopdave Oct 24, 2016
11ad1d7
Correcting links to keys for USERGRID-1281
snoopdave Oct 24, 2016
77ad91a
Update Cassandra and ElasticSearch versions supported & add node abou…
snoopdave Oct 24, 2016
d7c14bb
If claims cannot be parsed, fetch new JWT token
snoopdave Oct 24, 2016
f0c9d44
Add key freshness and full set of tests
snoopdave Oct 25, 2016
fe3bf56
Fix typo and unused reference
snoopdave Oct 28, 2016
8921850
Add missing bad_confirmation_token.jsp
snoopdave Oct 20, 2016
73de903
Ensure the admin invited to org email is sent even when external SSO …
Oct 20, 2016
e0eb11c
If claims cannot be parsed, fetch new JWT token
snoopdave Oct 24, 2016
efa65ac
Add key freshness and full set of tests
snoopdave Oct 25, 2016
406a742
Fix typo and unused reference
snoopdave Oct 28, 2016
7cc5c1c
Merge branch 'master' into usergrid-1318-queue
snoopdave Oct 31, 2016
1980562
Implemented queue clear (with test) and added some trace level logging
snoopdave Nov 2, 2016
1d5e407
Logging changes & import cleanups.
snoopdave Nov 3, 2016
521047c
Add timeout to shard and message counters, in addition to existing "n…
snoopdave Nov 3, 2016
522a551
Remove explicit init message and option to turn off in-memory queue c…
snoopdave Nov 3, 2016
cdc417d
Fix issue where accidental empty property for SMTP still causes authe…
Nov 5, 2016
689c450
Merge branch 'hotfix-20160819'
Nov 6, 2016
ae16458
Minor formatting, logging and changes recommended by IntelliJ
snoopdave Nov 9, 2016
5a81eb2
Rename send message methods to sendMessageToAllRegions() and sendMess…
snoopdave Nov 9, 2016
f6e6d5d
Add back support for SNS queue manager impl
snoopdave Nov 9, 2016
2a86795
Changes in message fetching logic.
snoopdave Nov 9, 2016
fc68e42
Message counter fixes
snoopdave Nov 10, 2016
78fc3fc
Base local keyspace name off of application keyspace name, plus data …
snoopdave Nov 10, 2016
b405ce8
don’t throw exception if counter does not exist yet
snoopdave Nov 10, 2016
ab26fa5
set short GC grace period to mop up tombstones quickly as there will …
snoopdave Nov 10, 2016
fb62629
Merge commit 'refs/pull/562/head' of github.com:apache/usergrid
Nov 11, 2016
8f7e079
Update datastax driver to 2.1.10
Nov 11, 2016
2108f6d
Fix typo in password policy properties.
Nov 11, 2016
c62a348
Test fixes in queue module only.
snoopdave Nov 11, 2016
d1ac184
Align legacy queue setup with Qakka
snoopdave Nov 11, 2016
1ef3920
Increase test cassandra connections per host as we test with only 1 h…
Nov 11, 2016
9192095
Revert "Increase test cassandra connections per host as we test with …
Nov 11, 2016
cd7e803
Reduce load on datastax control connection ( mostly for tests because…
Nov 11, 2016
0dc7d03
Set core and max connections to be the same for the datastax driver.
Nov 12, 2016
a8b3e79
Better tune connection pool with the datastax driver.
Nov 12, 2016
daf608e
Increase database connection pools for persistence tests.
Nov 12, 2016
84af161
Add more database connections for the tests ( single database host be…
Nov 12, 2016
2389c20
Still tweaking tests for CI environments.
Nov 12, 2016
a31fa45
Additional test adjustments to better work with CI environments.
Nov 12, 2016
b895260
Synchronize creation/connecting of datastax cluster and sessions.
Nov 12, 2016
664a2cf
Update timeout configurations.
Nov 12, 2016
ac28b8f
Fix conversion to seconds.
Nov 12, 2016
ce9d66c
Add reconnection policy.
Nov 12, 2016
b418451
Remove reuse address.
Nov 12, 2016
bb5d3f5
Add database connection closing to shutdown listener and again tweak …
Nov 14, 2016
fbd73cd
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/user…
snoopdave Nov 14, 2016
9ee4288
Optimization: don’t check that queue exists on every call
snoopdave Nov 14, 2016
58c1d09
Use one injector in tests and, at most, one Akka cluster per test class.
snoopdave Nov 15, 2016
e83b54e
Use one injector in tests and, at most, one Akka cluster per test cla…
snoopdave Nov 15, 2016
14b5fe0
Use one and only one Akka cluster for all queue tests.
snoopdave Nov 15, 2016
80369b9
See if longer waits fix tests on Jenkins.
snoopdave Nov 15, 2016
be7c2d1
Ignore QueueResource test as it may be interfering with other tests.
snoopdave Nov 15, 2016
f4dca5d
Update Elasticsearch client version to 1.7.5.
Nov 15, 2016
edbda93
Fix Core Tests.
Nov 16, 2016
6e5978b
Set the default elasticsearch cluster name via fig only.
Nov 16, 2016
e504aae
Fix cassandra properties that are used during setup and bootstrap.
Nov 17, 2016
278abd2
Make it possible to configure either LOCAL, DISTRIBUTED or DISTRIBUTE…
snoopdave Nov 18, 2016
fdd4e0b
Turn on Qakka for services and rest tests too, plus a test fix.
snoopdave Nov 18, 2016
61878c0
Fix log binding and reduce long poll timeout for tests to reduce time…
Nov 19, 2016
9b12299
For tests, ensure we clear the in memory set of queues that exist as …
Nov 19, 2016
432a8f8
Fix issue with updated LocalQueueManager creation.
Nov 19, 2016
7464167
Call clearQueueNameCache during test database schema destruction.
Nov 19, 2016
eaf3b52
Tests use a different injector, clear the queue name cache using othe…
Nov 19, 2016
dcf38be
Don’t attempt to create queue until actor system is started.
snoopdave Nov 19, 2016
0736478
In tests, schema already setup before populateDataBase is called.
Nov 19, 2016
66c1b0d
Reduce queue long polling timeout for tests.
Nov 19, 2016
6bd4a20
Add logging and wait for schema agreement in tests that drop the keys…
Nov 19, 2016
40e1c06
Use direct queries to cassandra to see if a keyspace exists vs. the d…
Nov 19, 2016
2578e93
Give CoreSchemaManager in tests the ability to force check if keyspac…
Nov 19, 2016
20c425b
Reduce retries in refreshIndex() and tone down exceptions that occur …
snoopdave Nov 19, 2016
dd46ebe
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/user…
snoopdave Nov 19, 2016
0a83ee4
Rely less on the datastax driver's metadata configuration as tests mo…
Nov 20, 2016
ad9d607
Stop using hector for schema deletion in tests and move to the datast…
Nov 20, 2016
f0ec3a9
Increase database connections for Collection module as there are a lo…
Nov 20, 2016
cae0605
Reduce long polling time in tests and switch back to database driver …
Nov 20, 2016
a77b1f4
Tune test properties.
Nov 20, 2016
a7cf58c
Further test tuning.
Nov 20, 2016
9364496
Enable Akka for all tests.
snoopdave Nov 20, 2016
229a13a
Reduce number of actors in hopes of getting collections tests passing…
snoopdave Nov 20, 2016
8587735
Standardize the collection test properties.
Nov 20, 2016
f49fe0a
Add ability to force check database schema with Tables in addition to…
Nov 20, 2016
0ada637
Add retry logic to initial session connections to the database.
Nov 20, 2016
3d60145
Clear up some potential netty dependency conflicts by widening the ra…
Nov 21, 2016
2af22a8
Make sure to create keyspaces on initialization before trying to obta…
Nov 21, 2016
8fda937
Fix more netty dependency exclusions.
Nov 21, 2016
fab971d
Increase # of database connections for collection tests.
Nov 21, 2016
cb41a0a
Additional test tuning for Collection module.
Nov 21, 2016
4584787
Services module test tuning.
Nov 21, 2016
fcd3bd7
Set smaller thread counts in tests.
Nov 21, 2016
447aaa1
More Collection test tuning.
Nov 21, 2016
ebab21e
Use defaults always for max requests per connection for datastax driver.
Nov 21, 2016
cf06b4e
Fix log4j props in Services and destroy db session before re-creating…
Nov 21, 2016
b9f39ee
Merge branch 'master' of https://github.com/snoopdave/usergrid
snoopdave Dec 8, 2016
d4c408f
Fix tools module so it compiles and builds properly.
snoopdave Dec 8, 2016
8444687
New "re-persist all entities in named list of apps" tool, plus fixes …
snoopdave Dec 9, 2016
33fe480
Add option to update each entity.
snoopdave Dec 13, 2016
cb95ce5
Fix the rarely used getConnectionTypes() method to use Graph rather t…
snoopdave Dec 13, 2016
79492c2
Fix ExportAppTest
snoopdave Dec 13, 2016
ff574d3
Fix cassandra transport frame size exceptions due to numeric overflow…
Dec 21, 2016
2f7b0ee
Merge branch 'hotfix-20160819'
Dec 21, 2016
e3ab255
Add configuration to disable unique value verification using Akka clu…
Jan 23, 2017
303661c
Add client side timestamp generator to Datastax cluster client.
Jan 23, 2017
bb5f2fb
Stop parallel execution of tests in EntityCollectionManagerIT tempora…
Jan 23, 2017
2fe81cd
Add logging to AbstractServiceNotificationIT
Jan 23, 2017
9f63dcc
Remove call to .duplicate on the BB in serialization classes and lowe…
Jan 23, 2017
2f25e9c
Set default to UniqueValue verification for UG clustering.
Jan 23, 2017
7125899
Add logging to tests.
Jan 23, 2017
cf81679
Set test timeouts higher due to schema changes taking awhile, and the…
Jan 23, 2017
7134d34
Temporarily disabling tools build from main pom as it's failing to ex…
Jan 23, 2017
8e7aff3
Revert "Temporarily disabling tools build from main pom as it's faili…
Jan 23, 2017
280ac8b
Temporarily disabling tools tests as it's failing to exit properly ca…
Jan 23, 2017
691d6b2
Make Locks keyspace creation more robust ( IF NOT EXISTS sometimes ha…
Jan 25, 2017
cf0b653
Fixes issue with organization credentials using the same cache key wh…
Feb 10, 2017
447b5b8
Enhance the elasticsearch filter so that sort predicates of known ent…
michaelarusso Feb 22, 2017
5903c3c
Always make sure FIELD_STRING_NESTED_UNANALYZED is used for known fie…
michaelarusso Feb 22, 2017
8426840
Fix condition with deciding whether or not to use the known field typ…
michaelarusso Feb 22, 2017
f8e644d
Slight refactor of visting the parsed query such that a correct deter…
michaelarusso Feb 23, 2017
a494146
[USERGRID-1336] Initial commit of a simple query analyzer feature.
michaelarusso Feb 24, 2017
f556e42
Add query analyzer condition for full collection sorts when the colle…
michaelarusso Feb 25, 2017
761aa44
Add some additional logging around flaky test setup.
michaelarusso Feb 28, 2017
104f64e
Add UTF-8 sourceEncoding, without it build fails on some platforms.
snoopdave Mar 2, 2017
f6aed13
[USERGRID-1341] Fix cache expiration type for ApplicationQueueManager…
michaelarusso Mar 21, 2017
9141f8d
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/user…
michaelarusso Mar 21, 2017
3b1b0ca
Fix issue where default passwords are not being created when not prov…
michaelarusso Mar 23, 2017
d921108
Merge commit 'refs/pull/567/head' of github.com:apache/usergrid
michaelarusso Mar 23, 2017
8917832
Fixes a handful of issues around single quotes and plus symbols in qu…
michaelarusso Mar 24, 2017
ea1ba36
Default disable the query breaker enforcement.
michaelarusso Mar 26, 2017
64a012d
Lowercase properties when selecting
Mar 28, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use one injector in tests and, at most, one Akka cluster per test class.
  • Loading branch information
snoopdave committed Nov 15, 2016
commit 58c1d09fbffe9bd5a70a3ec27e1a59c00dfb2dc6
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

package org.apache.usergrid.persistence.qakka;

import com.google.inject.Injector;
import org.apache.usergrid.persistence.core.migration.schema.MigrationException;
import org.apache.usergrid.persistence.core.migration.schema.MigrationManager;
import org.junit.BeforeClass;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;


public abstract class AbstractAkkaTest {
private static final Logger logger = LoggerFactory.getLogger( AbstractAkkaTest.class );

static AtomicInteger nextPort = new AtomicInteger(3551);

// protected static Injector sharedInjector;

static AtomicBoolean migrated = new AtomicBoolean( false );

static { new KeyspaceDropper(); }


public AbstractAkkaTest() {
if ( !migrated.getAndSet( true ) ) {
//setInjector( Guice.createInjector( new TestModule() ) );
MigrationManager migrationManager = getInjector().getInstance( MigrationManager.class );
try {
migrationManager.migrate();
} catch (MigrationException e) {
logger.error("Error in migration", e);
}
}
}

protected abstract Injector getInjector();


// protected Injector getInjector() {
// return sharedInjector;
// }
//
// protected static void setInjector(Injector injector) {
// AbstractTest.sharedInjector = injector;
// }


protected static int getNextAkkaPort() {
int ret = nextPort.getAndIncrement();
logger.info("Returning port {}", ret);
return ret;
}


@BeforeClass
public static void startCassandra() throws Exception {
//EmbeddedCassandraServerHelper.startEmbeddedCassandra("/cassandra.yaml");
}



}