Commit Graph

40 Commits

Author SHA1 Message Date
Mark Paluch
39dca76e7c DATACASS-253 - Add synchronization to CachedPreparedStatementCreator.
CachedPreparedStatementCreator is now thread-safe and synchronizes concurrent calls to statement preparation. The synchronization prevents multiple calls to Session.prepare(…) for the same session, CQL statement and keyspace.
2016-06-03 12:25:01 -07:00
Mark Paluch
be495728d9 DATACASS-271 - Polishing.
Add author tags. Add/update license headers where needed. Remove calls to deprecated methods. Adopt pooling options after the driver update. Add hints_directory for Cassandra 3.

Reduce driver baseline to core driver 3.0.1. The DSE driver requires the core driver itself and can be added as dependency to user projects while retaining full compatibility. As of now the DSE driver is rc1 hence it requires core rc1.

Use getTimestamp for timestamp type methods as the driver aligned the method to the type. Support short, byte and time. Enable LocalDate return type and add tests for native supported types.

Change long to bigint type as long was mapped to the counter type when creating tables. Align the default to bigint as bigint is the better choice since table creation uses mostly regular tables and not counter tables. Type can be overriden using @CassandraType.

We now support setting NettyOptions on CassandraCqlClusterFactoryBean and AbstractClusterConfiguration. The cassandra driver 2.1.9 changed its default shutdown behavior by introducing a 2 second quiet period when shutting down Cluster instances. This change was retained throughout the 3.0 driver which slow the test down by an order of magnitude. Configure QueryOptions on tests to prevent delays caused by the asynchronous schema refresh.

Original pull request: #56.
Related pull request: #52.
Related ticket: DATACASS-169.
2016-05-20 12:54:19 -07:00
John Blum
a1e75b3857 DATACASS-219 - On startup CREATE TABLE from entities should only add 'if not exists'. 2016-05-10 20:04:25 -07:00
Mark Paluch
c33d509b8e DATACASS-255 - Cassandra Test cleanup.
Replace CassandraUnit test rule with own test rule that honors the external/embedded Cassandra preference. Move Cassandra server initialization into CassandraRule. Introduce a KeyspaceRule to provide managed keyspaces on test class level. Allow cached cluster connections by enabling CassandraRule as class rule. A test that requires a running Cassandra instance needs to either extend the AbstractEmbeddedCassandraIntegrationTest or add the test rule CassandraRule to its test.

Consolidate connection properties (before merging the spring-cql and spring-data-cassandra modules) and simplify config properties classes. Add cleanup after the test run to remove temporary keyspaces. This change allows repeating test runs on a stateful Cassandra instance (e.g. an externally started Cassandra instance). Rename config file and change references to renamed files to support the consolidated connection properties in context config files.
Removed FunkyIdentifierIntegrationTest as it only tests creating tables using reserved Cassandra words. Spring Data Cassandra does not constrain CQL identifiers so maybe later we'll add a test to verify the implemented rules.

Exclude logback-core dependency from cassandra-all. Remove jamm dependency in tests as it's not used. Removed cassandra-unit dependency as the usage is very little. Removed unnecessary hector dependency.

Rename all integration tests to end with "IntegrationTests" and unit tests to end with "UnitTests". Move unit tests to the system under test package to enable testing of package-private types and members. Add missing license headers and author tags. Reformat all test code using the Spring Data Eclipse formatting.

Original pull request: #51
2016-05-10 11:01:33 +02:00
Oliver Gierke
a453c5e961 DATACASS-264 - Prepare next development iteration. 2016-04-06 16:36:59 +02:00
Oliver Gierke
ecf88c24d3 DATACASS-264 - Release version 1.4 GA (Hopper). 2016-04-06 16:35:58 +02:00
Oliver Gierke
e572723e34 DATACASS-256 - Prepare next development iteration. 2016-03-18 11:15:51 +01:00
Oliver Gierke
4f70ef633c DATACASS-256 - Release version 1.4 RC1 (Hopper). 2016-03-18 11:14:59 +01:00
Oliver Gierke
0de315c0bd DATACASS-251 - Prepare next development iteration. 2016-02-12 15:43:39 +01:00
Oliver Gierke
f35c9d4332 DATACASS-251 - Release version 1.4 M1 (Hopper). 2016-02-12 15:42:46 +01:00
David Webb
237ac88bc5 DATACASS-239 - Upgraded to latest Cassandra, Cassandra unit and Dse driver.
Updated Cassandra-Unit, DSE Driver and Cassandra version to latest stable version. Changed the Test Cases to support the API changes on the driver by DataStax. They changed the exception hierarchy for failed
replication factor quorum. The embedded spring-cassandra.yaml files were tuned to turn of unneeded features that were causing overhead in the testing. Marked new test dependencies as test scope.

Original pull request: #43.
2015-12-23 10:19:52 +01:00
Spring Buildmaster
9351930aef DATACASS-232 - Prepare next development iteration. 2015-09-01 02:00:41 -07:00
Spring Buildmaster
b037d0eb2e DATACASS-232 - Release version 1.3.0.RELEASE (Gosling GA). 2015-09-01 02:00:39 -07:00
Spring Buildmaster
291893b56c DATACASS-230 - Prepare next development iteration. 2015-08-04 04:50:32 -07:00
Spring Buildmaster
9f08df3b27 DATACASS-230 - Release version 1.3.0.RC1 (Gosling RC1). 2015-08-04 04:50:30 -07:00
Spring Buildmaster
7d5a62c504 DATACASS-215 - Prepare next development iteration. 2015-06-02 01:41:15 -07:00
Spring Buildmaster
144b095fab DATACASS-215 - Release version 1.3.0 M1 (Gosling). 2015-06-02 01:41:12 -07:00
Andy Wilkinson
64eb1f738c DATACASS-208 - Removed obsolete dependency to Liquibase.
Original pull request: #33.
2015-04-13 13:47:58 +02:00
Spring Buildmaster
bdf9a990ca DATACASS-207 - Prepare next development iteration. 2015-03-23 05:03:32 -07:00
Spring Buildmaster
ae67ea4c55 DATACASS-207 - Release version 1.2.0.RELEASE. 2015-03-23 05:03:30 -07:00
Spring Buildmaster
a25ef43bea DATACASS-205 - Prepare next development iteration. 2015-03-05 07:41:40 -08:00
Spring Buildmaster
fa702a55bf DATACASS-205 - Release version 1.2.0.RC1. 2015-03-05 07:41:36 -08:00
David Webb
e1a197170b DATACASS-198: Upgrade for Cassandra 2.1 Support
Task-Url: https://jira.spring.io/browse/DATACASS-198
2015-01-26 15:18:22 -05:00
Spring Buildmaster
56fd0177f6 DATACASS-186 - Prepare next development iteration. 2014-12-01 04:12:51 -08:00
Spring Buildmaster
3ec5c774c8 DATACASS-186 - Release version 1.2.0.M1. 2014-12-01 04:12:49 -08:00
Spring Buildmaster
a5c6782125 DATACASS-165 - Prepare next development iteration. 2014-09-05 03:18:20 -07:00
Spring Buildmaster
d6c594838c DATACASS-165 - Release version 1.1.0.RELEASE (Evans GA). 2014-09-05 03:18:17 -07:00
Spring Buildmaster
617875bc5a DATACASS-151 - Prepare next development iteration. 2014-08-13 07:08:38 -07:00
Spring Buildmaster
0eb207469a DATACASS-151 - Release version 1.1.0.RC1. 2014-08-13 07:08:34 -07:00
David Webb
71eee6de31 DATACASS-136 - CLOSED - Updated dependencies.
Moved cassandra-all to scope test (left over from DSJD 1.X days)
Newest DSJD
Newest C* 2.0.X
2014-08-08 23:32:32 -04:00
David Webb
54910a1b17 DATACASS-139 - IN PROGRESS - Added PreparedStatement Cache for
Performance Requirement.
2014-07-05 00:50:29 -04:00
Spring Buildmaster
46f990483a DATACASS-131 - Prepare next development iteration. 2014-05-20 10:04:29 -07:00
Spring Buildmaster
9274084569 DATACASS-131 - Release version 1.0.0.RELEASE. 2014-05-20 10:04:23 -07:00
Oliver Gierke
6ec9532613 DATACASS-132 - Removed obsolete CGLib dependency. 2014-05-19 11:55:30 +02:00
Spring Buildmaster
beed9f9357 DATACASS-127 - Prepare next development iteration. 2014-05-02 05:12:23 -07:00
Spring Buildmaster
b0ff2f5867 DATACASS-127 - Release version 1.0.0.RC1. 2014-05-02 05:12:20 -07:00
David T Webb
8edc4ce1a9 DATACASS-126 - Added DataStax Java Driver 2.0.1 dependency and
cassandra-unit 2.0.X dependency.

Full support for Cassandra 2.0.X
2014-04-29 09:45:14 -04:00
Spring Buildmaster
200effb9a2 DATACASS-118 - Prepare next development iteration. 2014-03-31 17:30:13 +02:00
Spring Buildmaster
d3948095f5 DATACASS-118 - Release version 1.0.0.M1. 2014-03-31 08:28:19 -07:00
Matthew Adams
97d55bcc7a DATACASS-80 - renamed module spring-cassandra -> spring-cql, xml namespace from .../cassandra -> .../cql, + classes 2014-02-26 16:44:34 -06:00