Elffuss BraidHub

kikocis/java-driver public

9e8f5a07be4b · 53.9 KiBRenderedRawPermalink
1## Changelog
2
3### 3.0.0-beta1 (in progress)
4
5- [bug] JAVA-993: Support for "custom" types after CASSANDRA-10365.
6- [bug] JAVA-999: Handle unset parameters in QueryLogger.
7- [bug] JAVA-998: SchemaChangeListener not invoked for Functions or Aggregates having UDT arguments.
8- [bug] JAVA-1009: use CL ONE to compute query plan when reconnecting
9 control connection.
10- [improvement] JAVA-1003: Change default consistency level to LOCAL_ONE (amends JAVA-926).
11- [improvement] JAVA-863: Idempotence propagation in prepared statements.
12
13Merged from 2.1 branch:
14
15- [improvement] JAVA-989: Include keyspace name when invalid replication found when generating token map.
16- [improvement] JAVA-664: Reduce heap consumption for TokenMap.
17
18
19### 3.0.0-alpha5
20
21- [improvement] JAVA-958: Make TableOrView.Order visible.
22- [improvement] JAVA-968: Update metrics to the latest version.
23- [improvement] JAVA-965: Improve error handling for when a non-type 1 UUID is given to bind() on a timeuuid column.
24- [improvement] JAVA-885: Pass the authenticator name from the server to the auth provider.
25- [improvement] JAVA-961: Raise an exception when an older version of guava (<16.01) is found.
26- [bug] JAVA-972: TypeCodec.parse() implementations should be case insensitive when checking for keyword NULL.
27- [bug] JAVA-971: Make type codecs invariant.
28- [bug] JAVA-986: Update documentation links to reference 3.0.
29- [improvement] JAVA-841: Refactor SSLOptions API.
30- [improvement] JAVA-948: Don't limit cipher suites by default.
31- [improvement] JAVA-917: Document SSL configuration.
32- [improvement] JAVA-936: Adapt schema metadata parsing logic to new storage format of CQL types in C* 3.0.
33- [new feature] JAVA-846: Provide custom codecs library as an extra module.
34- [new feature] JAVA-742: Codec Support for JSON.
35- [new feature] JAVA-606: Codec support for Java 8.
36- [new feature] JAVA-565: Codec support for Java arrays.
37- [new feature] JAVA-605: Codec support for Java enums.
38- [bug] JAVA-884: Fix UDT mapper to process fields in the correct order.
39
40Merged from 2.1 branch:
41
42- [bug] JAVA-854: avoid early return in Cluster.init when a node doesn't support the protocol version.
43- [bug] JAVA-978: Fix quoting issue that caused Mapper.getTableMetadata() to return null.
44- [improvement] JAVA-920: Downgrade "error creating pool" message to WARN.
45- [bug] JAVA-954: Don't trigger reconnection before initialization complete.
46- [improvement] JAVA-914: Avoid rejected tasks at shutdown.
47- [improvement] JAVA-921: Add SimpleStatement.getValuesCount().
48- [bug] JAVA-901: Move call to connection.release() out of cancelHandler.
49- [bug] JAVA-960: Avoid race in control connection shutdown.
50- [bug] JAVA-656: Fix NPE in ControlConnection.updateLocationInfo.
51- [bug] JAVA-966: Count uninitialized connections in conviction policy.
52- [improvement] JAVA-917: Document SSL configuration.
53- [improvement] JAVA-652: Add DCAwareRoundRobinPolicy builder.
54- [improvement] JAVA-808: Add generic filtering policy that can be used to exclude specific DCs.
55- [bug] JAVA-988: Metadata.handleId should handle escaped double quotes.
56- [bug] JAVA-983: QueryBuilder cannot handle collections containing function calls.
57
58
59### 3.0.0-alpha4
60
61- [improvement] JAVA-926: Change default consistency level to LOCAL_QUORUM.
62- [bug] JAVA-942: Fix implementation of UserType.hashCode().
63- [improvement] JAVA-877: Don't delay UP/ADDED notifications if protocol version = V4.
64- [improvement] JAVA-938: Parse 'extensions' column in table metadata.
65- [bug] JAVA-900: Fix Configuration builder to allow disabled metrics.
66- [new feature] JAVA-902: Prepare API for async query trace.
67- [new feature] JAVA-930: Add BoundStatement#unset.
68- [bug] JAVA-946: Make table metadata options class visible.
69- [bug] JAVA-939: Add crcCheckChance to TableOptionsMetadata#equals/hashCode.
70- [bug] JAVA-922: Make TypeCodec return mutable collections.
71- [improvement] JAVA-932: Limit visibility of codec internals.
72- [improvement] JAVA-934: Warn if a custom codec collides with an existing one.
73- [improvement] JAVA-940: Allow typed getters/setters to target any CQL type.
74- [bug] JAVA-950: Fix Cluster.connect with a case-sensitive keyspace.
75- [bug] JAVA-953: Fix MaterializedViewMetadata when base table name is case sensitive.
76
77
78### 3.0.0-alpha3
79
80- [new feature] JAVA-571: Support new system tables in C* 3.0.
81- [improvement] JAVA-919: Move crc_check_chance out of compressions options.
82
83Merged from 2.0 branch:
84
85- [improvement] JAVA-718: Log streamid at the trace level on sending request and receiving response.
86- [bug] JAVA-796: Fix SpeculativeExecutionPolicy.init() and close() are never called.
87- [improvement] JAVA-710: Suppress unnecessary warning at shutdown.
88- [improvement] #340: Allow DNS name with multiple A-records as contact point.
89- [bug] JAVA-794: Allow tracing across multiple result pages.
90- [bug] JAVA-737: DowngradingConsistencyRetryPolicy ignores write timeouts.
91- [bug] JAVA-736: Forbid bind marker in QueryBuilder add/append/prepend.
92- [bug] JAVA-712: Prevent QueryBuilder.quote() from applying duplicate double quotes.
93- [bug] JAVA-688: Prevent QueryBuilder from trying to serialize raw string.
94- [bug] JAVA-679: Support bind marker in QueryBuilder DELETE's list index.
95- [improvement] JAVA-475: Improve QueryBuilder API for SELECT DISTINCT.
96- [improvement] JAVA-225: Create values() function for Insert builder using List.
97- [improvement] JAVA-702: Warn when ReplicationStrategy encounters invalid
98 replication factors.
99- [improvement] JAVA-662: Add PoolingOptions method to set both core and max
100 connections.
101- [improvement] JAVA-766: Do not include epoll JAR in binary distribution.
102- [improvement] JAVA-726: Optimize internal copies of Request objects.
103- [bug] JAVA-815: Preserve tracing across retries.
104- [improvement] JAVA-709: New RetryDecision.tryNextHost().
105- [bug] JAVA-733: Handle function calls and raw strings as non-idempotent in QueryBuilder.
106- [improvement] JAVA-765: Provide API to retrieve values of a Parameterized SimpleStatement.
107- [improvement] JAVA-827: implement UPDATE .. IF EXISTS in QueryBuilder.
108- [improvement] JAVA-618: Randomize contact points list to prevent hotspots.
109- [improvement] JAVA-720: Surface the coordinator used on query failure.
110- [bug] JAVA-792: Handle contact points removed during init.
111- [improvement] JAVA-719: Allow PlainTextAuthProvider to change its credentials at runtime.
112- [new feature] JAVA-151: Make it possible to register for SchemaChange Events.
113- [improvement] JAVA-861: Downgrade "Asked to rebuild table" log from ERROR to INFO level.
114- [improvement] JAVA-797: Provide an option to prepare statements only on one node.
115- [improvement] JAVA-658: Provide an option to not re-prepare all statements in onUp.
116- [improvement] JAVA-853: Customizable creation of netty timer.
117- [bug] JAVA-859: Avoid quadratic ring processing with invalid replication factors.
118- [improvement] JAVA-657: Debounce control connection queries.
119- [bug] JAVA-784: LoadBalancingPolicy.distance() called before init().
120- [new feature] JAVA-828: Make driver-side metadata optional.
121- [improvement] JAVA-544: Allow hosts to remain partially up.
122- [improvement] JAVA-821, JAVA-822: Remove internal blocking calls and expose async session
123 creation.
124- [improvement] JAVA-725: Use parallel calls when re-preparing statement on other
125 hosts.
126- [bug] JAVA-629: Don't use connection timeout for unrelated internal queries.
127- [bug] JAVA-892: Fix NPE in speculative executions when metrics disabled.
128
129
130### 3.0.0-alpha2
131
132- [new feature] JAVA-875, JAVA-882: Move secondary index metadata out of column definitions.
133
134Merged from 2.2 branch:
135
136- [bug] JAVA-847: Propagate CodecRegistry to nested UDTs.
137- [improvement] JAVA-848: Ability to store a default, shareable CodecRegistry
138 instance.
139- [bug] JAVA-880: Treat empty ByteBuffers as empty values in TupleCodec and
140 UDTCodec.
141
142
143### 3.0.0-alpha1
144
145- [new feature] JAVA-876: Support new system tables in C* 3.0.0-alpha1.
146
147Merged from 2.2 branch:
148
149- [improvement] JAVA-810: Rename DateWithoutTime to LocalDate.
150- [bug] JAVA-816: DateCodec does not format values correctly.
151- [bug] JAVA-817: TimeCodec does not format values correctly.
152- [bug] JAVA-818: TypeCodec.getDataTypeFor() does not handle LocalDate instances.
153- [improvement] JAVA-836: Make ResultSet#fetchMoreResult return a
154 ListenableFuture<ResultSet>.
155- [improvement] JAVA-843: Disable frozen checks in mapper.
156- [improvement] JAVA-721: Allow user to register custom type codecs.
157- [improvement] JAVA-722: Support custom type codecs in mapper.
158
159
160### 2.2.0-rc3
161
162- [bug] JAVA-847: Propagate CodecRegistry to nested UDTs.
163- [improvement] JAVA-848: Ability to store a default, shareable CodecRegistry
164 instance.
165- [bug] JAVA-880: Treat empty ByteBuffers as empty values in TupleCodec and
166 UDTCodec.
167
168
169### 2.2.0-rc2
170
171- [improvement] JAVA-810: Rename DateWithoutTime to LocalDate.
172- [bug] JAVA-816: DateCodec does not format values correctly.
173- [bug] JAVA-817: TimeCodec does not format values correctly.
174- [bug] JAVA-818: TypeCodec.getDataTypeFor() does not handle LocalDate instances.
175- [improvement] JAVA-836: Make ResultSet#fetchMoreResult return a
176 ListenableFuture<ResultSet>.
177- [improvement] JAVA-843: Disable frozen checks in mapper.
178- [improvement] JAVA-721: Allow user to register custom type codecs.
179- [improvement] JAVA-722: Support custom type codecs in mapper.
180
181Merged from 2.1 branch:
182
183- [bug] JAVA-834: Special case check for 'null' string in index_options column.
184- [improvement] JAVA-835: Allow accessor methods with less parameters in case
185 named bind markers are repeated.
186- [improvement] JAVA-475: Improve QueryBuilder API for SELECT DISTINCT.
187- [improvement] JAVA-715: Make NativeColumnType a top-level class.
188- [improvement] JAVA-700: Expose ProtocolVersion#toInt.
189- [bug] JAVA-542: Handle void return types in accessors.
190- [improvement] JAVA-225: Create values() function for Insert builder using List.
191- [improvement] JAVA-713: HashMap throws an OOM Exception when logging level is set to TRACE.
192- [bug] JAVA-679: Support bind marker in QueryBuilder DELETE's list index.
193- [improvement] JAVA-732: Expose KEYS and FULL indexing options in IndexMetadata.
194- [improvement] JAVA-589: Allow @Enumerated in Accessor method parameters.
195- [improvement] JAVA-554: Allow access to table metadata from Mapper.
196- [improvement] JAVA-661: Provide a way to map computed fields.
197- [improvement] JAVA-824: Ignore missing columns in mapper.
198- [bug] JAVA-724: Preserve default timestamp for retries and speculative executions.
199- [improvement] JAVA-738: Use same pool implementation for protocol v2 and v3.
200- [improvement] JAVA-677: Support CONTAINS / CONTAINS KEY in QueryBuilder.
201- [improvement] JAVA-477/JAVA-540: Add USING options in mapper for delete and save
202 operations.
203- [improvement] JAVA-473: Add mapper option to configure whether to save null fields.
204
205Merged from 2.0 branch:
206
207- [bug] JAVA-737: DowngradingConsistencyRetryPolicy ignores write timeouts.
208- [bug] JAVA-736: Forbid bind marker in QueryBuilder add/append/prepend.
209- [bug] JAVA-712: Prevent QueryBuilder.quote() from applying duplicate double quotes.
210- [bug] JAVA-688: Prevent QueryBuilder from trying to serialize raw string.
211- [bug] JAVA-679: Support bind marker in QueryBuilder DELETE's list index.
212- [improvement] JAVA-475: Improve QueryBuilder API for SELECT DISTINCT.
213- [improvement] JAVA-225: Create values() function for Insert builder using List.
214- [improvement] JAVA-702: Warn when ReplicationStrategy encounters invalid
215 replication factors.
216- [improvement] JAVA-662: Add PoolingOptions method to set both core and max
217 connections.
218- [improvement] JAVA-766: Do not include epoll JAR in binary distribution.
219- [improvement] JAVA-726: Optimize internal copies of Request objects.
220- [bug] JAVA-815: Preserve tracing across retries.
221- [improvement] JAVA-709: New RetryDecision.tryNextHost().
222- [bug] JAVA-733: Handle function calls and raw strings as non-idempotent in QueryBuilder.
223
224
225### 2.2.0-rc1
226
227- [new feature] JAVA-783: Protocol V4 enum support.
228- [new feature] JAVA-776: Use PK columns in protocol v4 PREPARED response.
229- [new feature] JAVA-777: Distinguish NULL and UNSET values.
230- [new feature] JAVA-779: Add k/v payload for 3rd party usage.
231- [new feature] JAVA-780: Expose server-side warnings on ExecutionInfo.
232- [new feature] JAVA-749: Expose new read/write failure exceptions.
233- [new feature] JAVA-747: Expose function and aggregate metadata.
234- [new feature] JAVA-778: Add new client exception for CQL function failure.
235- [improvement] JAVA-700: Expose ProtocolVersion#toInt.
236- [new feature] JAVA-404: Support new C* 2.2 CQL date and time types.
237
238Merged from 2.1 branch:
239
240- [improvement] JAVA-782: Unify "Target" enum for schema elements.
241
242
243### 2.1.10 (in progress)
244
245- [bug] JAVA-988: Metadata.handleId should handle escaped double quotes.
246
247Merged from 2.0 branch:
248
249- [bug] JAVA-994: Don't call on(Up|Down|Add|Remove) methods if Cluster is closed/closing.
250- [bug] JAVA-995: Defunct connection even if initializing.
251
252
253### 2.1.9
254
255- [bug] JAVA-942: Fix implementation of UserType.hashCode().
256- [bug] JAVA-854: avoid early return in Cluster.init when a node doesn't support the protocol version.
257- [bug] JAVA-978: Fix quoting issue that caused Mapper.getTableMetadata() to return null.
258
259Merged from 2.0 branch:
260
261- [bug] JAVA-950: Fix Cluster.connect with a case-sensitive keyspace.
262- [improvement] JAVA-920: Downgrade "error creating pool" message to WARN.
263- [bug] JAVA-954: Don't trigger reconnection before initialization complete.
264- [improvement] JAVA-914: Avoid rejected tasks at shutdown.
265- [improvement] JAVA-921: Add SimpleStatement.getValuesCount().
266- [bug] JAVA-901: Move call to connection.release() out of cancelHandler.
267- [bug] JAVA-960: Avoid race in control connection shutdown.
268- [bug] JAVA-656: Fix NPE in ControlConnection.updateLocationInfo.
269- [bug] JAVA-966: Count uninitialized connections in conviction policy.
270- [improvement] JAVA-917: Document SSL configuration.
271- [improvement] JAVA-652: Add DCAwareRoundRobinPolicy builder.
272- [improvement] JAVA-808: Add generic filtering policy that can be used to exclude specific DCs.
273
274
275### 2.1.8
276
277Merged from 2.0 branch:
278
279- [improvement] JAVA-718: Log streamid at the trace level on sending request and receiving response.
280
281- [bug] JAVA-796: Fix SpeculativeExecutionPolicy.init() and close() are never called.
282- [improvement] JAVA-710: Suppress unnecessary warning at shutdown.
283- [improvement] #340: Allow DNS name with multiple A-records as contact point.
284- [bug] JAVA-794: Allow tracing across multiple result pages.
285- [bug] JAVA-737: DowngradingConsistencyRetryPolicy ignores write timeouts.
286- [bug] JAVA-736: Forbid bind marker in QueryBuilder add/append/prepend.
287- [bug] JAVA-712: Prevent QueryBuilder.quote() from applying duplicate double quotes.
288- [bug] JAVA-688: Prevent QueryBuilder from trying to serialize raw string.
289- [bug] JAVA-679: Support bind marker in QueryBuilder DELETE's list index.
290- [improvement] JAVA-475: Improve QueryBuilder API for SELECT DISTINCT.
291- [improvement] JAVA-225: Create values() function for Insert builder using List.
292- [improvement] JAVA-702: Warn when ReplicationStrategy encounters invalid
293 replication factors.
294- [improvement] JAVA-662: Add PoolingOptions method to set both core and max
295 connections.
296- [improvement] JAVA-766: Do not include epoll JAR in binary distribution.
297- [improvement] JAVA-726: Optimize internal copies of Request objects.
298- [bug] JAVA-815: Preserve tracing across retries.
299- [improvement] JAVA-709: New RetryDecision.tryNextHost().
300- [bug] JAVA-733: Handle function calls and raw strings as non-idempotent in QueryBuilder.
301- [improvement] JAVA-765: Provide API to retrieve values of a Parameterized SimpleStatement.
302- [improvement] JAVA-827: implement UPDATE .. IF EXISTS in QueryBuilder.
303- [improvement] JAVA-618: Randomize contact points list to prevent hotspots.
304- [improvement] JAVA-720: Surface the coordinator used on query failure.
305- [bug] JAVA-792: Handle contact points removed during init.
306- [improvement] JAVA-719: Allow PlainTextAuthProvider to change its credentials at runtime.
307- [new feature] JAVA-151: Make it possible to register for SchemaChange Events.
308- [improvement] JAVA-861: Downgrade "Asked to rebuild table" log from ERROR to INFO level.
309- [improvement] JAVA-797: Provide an option to prepare statements only on one node.
310- [improvement] JAVA-658: Provide an option to not re-prepare all statements in onUp.
311- [improvement] JAVA-853: Customizable creation of netty timer.
312- [bug] JAVA-859: Avoid quadratic ring processing with invalid replication factors.
313- [improvement] JAVA-657: Debounce control connection queries.
314- [bug] JAVA-784: LoadBalancingPolicy.distance() called before init().
315- [new feature] JAVA-828: Make driver-side metadata optional.
316- [improvement] JAVA-544: Allow hosts to remain partially up.
317- [improvement] JAVA-821, JAVA-822: Remove internal blocking calls and expose async session
318 creation.
319- [improvement] JAVA-725: Use parallel calls when re-preparing statement on other
320 hosts.
321- [bug] JAVA-629: Don't use connection timeout for unrelated internal queries.
322- [bug] JAVA-892: Fix NPE in speculative executions when metrics disabled.
323
324
325### 2.1.7.1
326
327- [bug] JAVA-834: Special case check for 'null' string in index_options column.
328- [improvement] JAVA-835: Allow accessor methods with less parameters in case
329 named bind markers are repeated.
330
331
332### 2.1.7
333
334- [improvement] JAVA-475: Improve QueryBuilder API for SELECT DISTINCT.
335- [improvement] JAVA-715: Make NativeColumnType a top-level class.
336- [improvement] JAVA-782: Unify "Target" enum for schema elements.
337- [improvement] JAVA-700: Expose ProtocolVersion#toInt.
338- [bug] JAVA-542: Handle void return types in accessors.
339- [improvement] JAVA-225: Create values() function for Insert builder using List.
340- [improvement] JAVA-713: HashMap throws an OOM Exception when logging level is set to TRACE.
341- [bug] JAVA-679: Support bind marker in QueryBuilder DELETE's list index.
342- [improvement] JAVA-732: Expose KEYS and FULL indexing options in IndexMetadata.
343- [improvement] JAVA-589: Allow @Enumerated in Accessor method parameters.
344- [improvement] JAVA-554: Allow access to table metadata from Mapper.
345- [improvement] JAVA-661: Provide a way to map computed fields.
346- [improvement] JAVA-824: Ignore missing columns in mapper.
347- [bug] JAVA-724: Preserve default timestamp for retries and speculative executions.
348- [improvement] JAVA-738: Use same pool implementation for protocol v2 and v3.
349- [improvement] JAVA-677: Support CONTAINS / CONTAINS KEY in QueryBuilder.
350- [improvement] JAVA-477/JAVA-540: Add USING options in mapper for delete and save
351 operations.
352- [improvement] JAVA-473: Add mapper option to configure whether to save null fields.
353
354Merged from 2.0 branch:
355
356- [bug] JAVA-737: DowngradingConsistencyRetryPolicy ignores write timeouts.
357- [bug] JAVA-736: Forbid bind marker in QueryBuilder add/append/prepend.
358- [bug] JAVA-712: Prevent QueryBuilder.quote() from applying duplicate double quotes.
359- [bug] JAVA-688: Prevent QueryBuilder from trying to serialize raw string.
360- [bug] JAVA-679: Support bind marker in QueryBuilder DELETE's list index.
361- [improvement] JAVA-475: Improve QueryBuilder API for SELECT DISTINCT.
362- [improvement] JAVA-225: Create values() function for Insert builder using List.
363- [improvement] JAVA-702: Warn when ReplicationStrategy encounters invalid
364 replication factors.
365- [improvement] JAVA-662: Add PoolingOptions method to set both core and max
366 connections.
367- [improvement] JAVA-766: Do not include epoll JAR in binary distribution.
368- [improvement] JAVA-726: Optimize internal copies of Request objects.
369- [bug] JAVA-815: Preserve tracing across retries.
370- [improvement] JAVA-709: New RetryDecision.tryNextHost().
371- [bug] JAVA-733: Handle function calls and raw strings as non-idempotent in QueryBuilder.
372
373
374### 2.1.6
375
376Merged from 2.0 branch:
377
378- [new feature] JAVA-584: Add getObject to BoundStatement and Row.
379- [improvement] JAVA-419: Improve connection pool resizing algorithm.
380- [bug] JAVA-599: Fix race condition between pool expansion and shutdown.
381- [improvement] JAVA-622: Upgrade Netty to 4.0.27.
382- [improvement] JAVA-562: Coalesce frames before flushing them to the connection.
383- [improvement] JAVA-583: Rename threads to indicate that they are for the driver.
384- [new feature] JAVA-550: Expose paging state.
385- [new feature] JAVA-646: Slow Query Logger.
386- [improvement] JAVA-698: Exclude some errors from measurements in LatencyAwarePolicy.
387- [bug] JAVA-641: Fix issue when executing a PreparedStatement from another cluster.
388- [improvement] JAVA-534: Log keyspace xxx does not exist at WARN level.
389- [improvement] JAVA-619: Allow Cluster subclasses to delegate to another instance.
390- [new feature] JAVA-669: Expose an API to check for schema agreement after a
391 schema-altering statement.
392- [improvement] JAVA-692: Make connection and pool creation fully async.
393- [improvement] JAVA-505: Optimize connection use after reconnection.
394- [improvement] JAVA-617: Remove "suspected" mechanism.
395- [improvement] reverts JAVA-425: Don't mark connection defunct on client timeout.
396- [new feature] JAVA-561: Speculative query executions.
397- [bug] JAVA-666: Release connection before completing the ResultSetFuture.
398- [new feature BETA] JAVA-723: Percentile-based variant of query logger and speculative
399 executions.
400- [bug] JAVA-734: Fix buffer leaks when compression is enabled.
401- [improvement] JAVA-756: Use Netty's pooled ByteBufAllocator by default.
402- [improvement] JAVA-759: Expose "unsafe" paging state API.
403- [bug] JAVA-768: Prevent race during pool initialization.
404
405
406### 2.1.5
407
408- [bug] JAVA-575: Authorize Null parameter in Accessor method.
409- [improvement] JAVA-570: Support C* 2.1.3's nested collections.
410- [bug] JAVA-612: Fix checks on mapped collection types.
411- [bug] JAVA-672: Fix QueryBuilder.putAll() when the collection contains UDTs.
412
413Merged from 2.0 branch:
414
415- [new feature] JAVA-518: Add AddressTranslater for EC2 multi-region deployment.
416- [improvement] JAVA-533: Add connection heartbeat.
417- [improvement] JAVA-568: Reduce level of logs on missing rpc_address.
418- [improvement] JAVA-312, JAVA-681: Expose node token and range information.
419- [bug] JAVA-595: Fix cluster name mismatch check at startup.
420- [bug] JAVA-620: Fix guava dependency when using OSGI.
421- [bug] JAVA-678: Fix handling of DROP events when ks name is case-sensitive.
422- [improvement] JAVA-631: Use List<?> instead of List<Object> in QueryBuilder API.
423- [improvement] JAVA-654: Exclude Netty POM from META-INF in shaded JAR.
424- [bug] JAVA-655: Quote single quotes contained in table comments in asCQLQuery method.
425- [bug] JAVA-684: Empty TokenRange returned in a one token cluster.
426- [improvement] JAVA-687: Expose TokenRange#contains.
427- [bug] JAVA-614: Prevent race between cancellation and query completion.
428- [bug] JAVA-632: Prevent cancel and timeout from cancelling unrelated ResponseHandler if
429 streamId was already released and reused.
430- [bug] JAVA-642: Fix issue when newly opened pool fails before we could mark the node UP.
431- [bug] JAVA-613: Fix unwanted LBP notifications when a contact host is down.
432- [bug] JAVA-651: Fix edge cases where a connection was released twice.
433- [bug] JAVA-653: Fix edge cases in query cancellation.
434
435
436### 2.1.4
437
438Merged from 2.0 branch:
439
440- [improvement] JAVA-538: Shade Netty dependency.
441- [improvement] JAVA-543: Target schema refreshes more precisely.
442- [bug] JAVA-546: Don't check rpc_address for control host.
443- [improvement] JAVA-409: Improve message of NoHostAvailableException.
444- [bug] JAVA-556: Rework connection reaper to avoid deadlock.
445- [bug] JAVA-557: Avoid deadlock when multiple connections to the same host get write
446 errors.
447- [improvement] JAVA-504: Make shuffle=true the default for TokenAwarePolicy.
448- [bug] JAVA-577: Fix bug when SUSPECT reconnection succeeds, but one of the pooled
449 connections fails while bringing the node back up.
450- [bug] JAVA-419: JAVA-587: Prevent faulty control connection from ignoring reconnecting hosts.
451- temporarily revert "Add idle timeout to the connection pool".
452- [bug] JAVA-593: Ensure updateCreatedPools does not add pools for suspected hosts.
453- [bug] JAVA-594: Ensure state change notifications for a given host are handled serially.
454- [bug] JAVA-597: Ensure control connection reconnects when control host is removed.
455
456
457### 2.1.3
458
459- [bug] JAVA-510: Ignore static fields in mapper.
460- [bug] JAVA-509: Fix UDT parsing at init when using the default protocol version.
461- [bug] JAVA-495: Fix toString, equals and hashCode on accessor proxies.
462- [bug] JAVA-528: Allow empty name on Column and Field annotations.
463
464Merged from 2.0 branch:
465
466- [bug] JAVA-497: Ensure control connection does not trigger concurrent reconnects.
467- [improvement] JAVA-472: Keep trying to reconnect on authentication errors.
468- [improvement] JAVA-463: Expose close method on load balancing policy.
469- [improvement] JAVA-459: Allow load balancing policy to trigger refresh for a single host.
470- [bug] JAVA-493: Expose an API to cancel reconnection attempts.
471- [bug] JAVA-503: Fix NPE when a connection fails during pool construction.
472- [improvement] JAVA-423: Log datacenter name in DCAware policy's init when it is explicitly provided.
473- [improvement] JAVA-504: Shuffle the replicas in TokenAwarePolicy.newQueryPlan.
474- [improvement] JAVA-507: Make schema agreement wait tuneable.
475- [improvement] JAVA-494: Document how to inject the driver metrics into another registry.
476- [improvement] JAVA-419: Add idle timeout to the connection pool.
477- [bug] JAVA-516: LatencyAwarePolicy does not shutdown executor on invocation of close.
478- [improvement] JAVA-451: Throw an exception when DCAwareRoundRobinPolicy is built with
479 an explicit but null or empty local datacenter.
480- [bug] JAVA-511: Fix check for local contact points in DCAware policy's init.
481- [improvement] JAVA-457: Make timeout on saturated pool customizable.
482- [improvement] JAVA-521: Downgrade Guava to 14.0.1.
483- [bug] JAVA-526: Fix token awareness for case-sensitive keyspaces and tables.
484- [bug] JAVA-515: Check maximum number of values passed to SimpleStatement.
485- [improvement] JAVA-532: Expose the driver version through the API.
486- [improvement] JAVA-522: Optimize session initialization when some hosts are not
487 responsive.
488
489
490### 2.1.2
491
492- [improvement] JAVA-361, JAVA-364, JAVA-467: Support for native protocol v3.
493- [bug] JAVA-454: Fix UDT fields of type inet in QueryBuilder.
494- [bug] JAVA-455: Exclude transient fields from Frozen checks.
495- [bug] JAVA-453: Fix handling of null collections in mapper.
496- [improvement] JAVA-452: Make implicit column names case-insensitive in mapper.
497- [bug] JAVA-433: Fix named bind markers in QueryBuilder.
498- [bug] JAVA-458: Fix handling of BigInteger in object mapper.
499- [bug] JAVA-465: Ignore synthetic fields in mapper.
500- [improvement] JAVA-451: Throw an exception when DCAwareRoundRobinPolicy is built with
501 an explicit but null or empty local datacenter.
502- [improvement] JAVA-469: Add backwards-compatible DataType.serialize methods.
503- [bug] JAVA-487: Handle null enum fields in object mapper.
504- [bug] JAVA-499: Handle null UDT fields in object mapper.
505
506Merged from 2.0 branch:
507
508- [bug] JAVA-449: Handle null pool in PooledConnection.release.
509- [improvement] JAVA-425: Defunct connection on request timeout.
510- [improvement] JAVA-426: Try next host when we get a SERVER_ERROR.
511- [bug] JAVA-449, JAVA-460, JAVA-471: Handle race between query timeout and completion.
512- [bug] JAVA-496: Fix DCAwareRoundRobinPolicy datacenter auto-discovery.
513
514
515### 2.1.1
516
517- [new] JAVA-441: Support for new "frozen" keyword.
518
519Merged from 2.0 branch:
520
521- [bug] JAVA-397: Check cluster name when connecting to a new node.
522- [bug] JAVA-326: Add missing CAS delete support in QueryBuilder.
523- [bug] JAVA-363: Add collection and data length checks during serialization.
524- [improvement] JAVA-329: Surface number of retries in metrics.
525- [bug] JAVA-428: Do not use a host when no rpc_address found for it.
526- [improvement] JAVA-358: Add ResultSet.wasApplied() for conditional queries.
527- [bug] JAVA-349: Fix negative HostConnectionPool open count.
528- [improvement] JAVA-436: Log more connection details at trace and debug levels.
529- [bug] JAVA-445: Fix cluster shutdown.
530
531
532### 2.1.0
533
534- [bug] JAVA-408: ClusteringColumn annotation not working with specified ordering.
535- [improvement] JAVA-410: Fail BoundStatement if null values are not set explicitly.
536- [bug] JAVA-416: Handle UDT and tuples in BuiltStatement.toString.
537
538Merged from 2.0 branch:
539
540- [bug] JAVA-407: Release connections on ResultSetFuture#cancel.
541- [bug] JAVA-393: Fix handling of SimpleStatement with values in query builder
542 batches.
543- [bug] JAVA-417: Ensure pool is properly closed in onDown.
544- [bug] JAVA-415: Fix tokenMap initialization at startup.
545- [bug] JAVA-418: Avoid deadlock on close.
546
547
548### 2.1.0-rc1
549
550Merged from 2.0 branch:
551
552- [bug] JAVA-394: Ensure defunct connections are completely closed.
553- [bug] JAVA-342, JAVA-390: Fix memory and resource leak on closed Sessions.
554
555
556### 2.1.0-beta1
557
558- [new] Support for User Defined Types and tuples
559- [new] Simple object mapper
560
561Merged from 2.0 branch: everything up to 2.0.3 (included), and the following.
562
563- [improvement] JAVA-204: Better handling of dead connections.
564- [bug] JAVA-373: Fix potential NPE in ControlConnection.
565- [bug] JAVA-291: Throws NPE when passed null for a contact point.
566- [bug] JAVA-315: Avoid LoadBalancingPolicy onDown+onUp at startup.
567- [bug] JAVA-343: Avoid classloader leak in Tomcat.
568- [bug] JAVA-387: Avoid deadlock in onAdd/onUp.
569- [bug] JAVA-377, JAVA-391: Make metadata parsing more lenient.
570
571
572### 2.0.13 (in progress)
573
574- [bug] JAVA-994: Don't call on(Up|Down|Add|Remove) methods if Cluster is closed/closing.
575- [bug] JAVA-995: Defunct connection even if initializing.
576
577
578### 2.0.12
579
580- [bug] JAVA-950: Fix Cluster.connect with a case-sensitive keyspace.
581- [improvement] JAVA-920: Downgrade "error creating pool" message to WARN.
582- [bug] JAVA-954: Don't trigger reconnection before initialization complete.
583- [improvement] JAVA-914: Avoid rejected tasks at shutdown.
584- [improvement] JAVA-921: Add SimpleStatement.getValuesCount().
585- [bug] JAVA-901: Move call to connection.release() out of cancelHandler.
586- [bug] JAVA-960: Avoid race in control connection shutdown.
587- [bug] JAVA-656: Fix NPE in ControlConnection.updateLocationInfo.
588- [bug] JAVA-966: Count uninitialized connections in conviction policy.
589- [improvement] JAVA-917: Document SSL configuration.
590- [improvement] JAVA-652: Add DCAwareRoundRobinPolicy builder.
591- [improvement] JAVA-808: Add generic filtering policy that can be used to exclude specific DCs.
592
593
594### 2.0.11
595
596- [improvement] JAVA-718: Log streamid at the trace level on sending request and receiving response.
597- [bug] JAVA-796: Fix SpeculativeExecutionPolicy.init() and close() are never called.
598- [improvement] JAVA-710: Suppress unnecessary warning at shutdown.
599- [improvement] #340: Allow DNS name with multiple A-records as contact point.
600- [bug] JAVA-794: Allow tracing across multiple result pages.
601- [bug] JAVA-737: DowngradingConsistencyRetryPolicy ignores write timeouts.
602- [bug] JAVA-736: Forbid bind marker in QueryBuilder add/append/prepend.
603- [bug] JAVA-712: Prevent QueryBuilder.quote() from applying duplicate double quotes.
604- [bug] JAVA-688: Prevent QueryBuilder from trying to serialize raw string.
605- [bug] JAVA-679: Support bind marker in QueryBuilder DELETE's list index.
606- [improvement] JAVA-475: Improve QueryBuilder API for SELECT DISTINCT.
607- [improvement] JAVA-225: Create values() function for Insert builder using List.
608- [improvement] JAVA-702: Warn when ReplicationStrategy encounters invalid
609 replication factors.
610- [improvement] JAVA-662: Add PoolingOptions method to set both core and max
611 connections.
612- [improvement] JAVA-766: Do not include epoll JAR in binary distribution.
613- [improvement] JAVA-726: Optimize internal copies of Request objects.
614- [bug] JAVA-815: Preserve tracing across retries.
615- [improvement] JAVA-709: New RetryDecision.tryNextHost().
616- [bug] JAVA-733: Handle function calls and raw strings as non-idempotent in QueryBuilder.
617- [improvement] JAVA-765: Provide API to retrieve values of a Parameterized SimpleStatement.
618- [improvement] JAVA-827: implement UPDATE .. IF EXISTS in QueryBuilder.
619- [improvement] JAVA-618: Randomize contact points list to prevent hotspots.
620- [improvement] JAVA-720: Surface the coordinator used on query failure.
621- [bug] JAVA-792: Handle contact points removed during init.
622- [improvement] JAVA-719: Allow PlainTextAuthProvider to change its credentials at runtime.
623- [new feature] JAVA-151: Make it possible to register for SchemaChange Events.
624- [improvement] JAVA-861: Downgrade "Asked to rebuild table" log from ERROR to INFO level.
625- [improvement] JAVA-797: Provide an option to prepare statements only on one node.
626- [improvement] JAVA-658: Provide an option to not re-prepare all statements in onUp.
627- [improvement] JAVA-853: Customizable creation of netty timer.
628- [bug] JAVA-859: Avoid quadratic ring processing with invalid replication factors.
629- [improvement] JAVA-657: Debounce control connection queries.
630- [bug] JAVA-784: LoadBalancingPolicy.distance() called before init().
631- [new feature] JAVA-828: Make driver-side metadata optional.
632- [improvement] JAVA-544: Allow hosts to remain partially up.
633- [improvement] JAVA-821, JAVA-822: Remove internal blocking calls and expose async session
634 creation.
635- [improvement] JAVA-725: Use parallel calls when re-preparing statement on other
636 hosts.
637- [bug] JAVA-629: Don't use connection timeout for unrelated internal queries.
638- [bug] JAVA-892: Fix NPE in speculative executions when metrics disabled.
639
640Merged from 2.0.10_fixes branch:
641
642- [improvement] JAVA-756: Use Netty's pooled ByteBufAllocator by default.
643- [improvement] JAVA-759: Expose "unsafe" paging state API.
644- [bug] JAVA-767: Fix getObject by name.
645- [bug] JAVA-768: Prevent race during pool initialization.
646
647
648### 2.0.10.1
649
650- [improvement] JAVA-756: Use Netty's pooled ByteBufAllocator by default.
651- [improvement] JAVA-759: Expose "unsafe" paging state API.
652- [bug] JAVA-767: Fix getObject by name.
653- [bug] JAVA-768: Prevent race during pool initialization.
654
655
656### 2.0.10
657
658- [new feature] JAVA-518: Add AddressTranslater for EC2 multi-region deployment.
659- [improvement] JAVA-533: Add connection heartbeat.
660- [improvement] JAVA-568: Reduce level of logs on missing rpc_address.
661- [improvement] JAVA-312, JAVA-681: Expose node token and range information.
662- [bug] JAVA-595: Fix cluster name mismatch check at startup.
663- [bug] JAVA-620: Fix guava dependency when using OSGI.
664- [bug] JAVA-678: Fix handling of DROP events when ks name is case-sensitive.
665- [improvement] JAVA-631: Use List<?> instead of List<Object> in QueryBuilder API.
666- [improvement] JAVA-654: Exclude Netty POM from META-INF in shaded JAR.
667- [bug] JAVA-655: Quote single quotes contained in table comments in asCQLQuery method.
668- [bug] JAVA-684: Empty TokenRange returned in a one token cluster.
669- [improvement] JAVA-687: Expose TokenRange#contains.
670- [new feature] JAVA-547: Expose values of BoundStatement.
671- [new feature] JAVA-584: Add getObject to BoundStatement and Row.
672- [improvement] JAVA-419: Improve connection pool resizing algorithm.
673- [bug] JAVA-599: Fix race condition between pool expansion and shutdown.
674- [improvement] JAVA-622: Upgrade Netty to 4.0.27.
675- [improvement] JAVA-562: Coalesce frames before flushing them to the connection.
676- [improvement] JAVA-583: Rename threads to indicate that they are for the driver.
677- [new feature] JAVA-550: Expose paging state.
678- [new feature] JAVA-646: Slow Query Logger.
679- [improvement] JAVA-698: Exclude some errors from measurements in LatencyAwarePolicy.
680- [bug] JAVA-641: Fix issue when executing a PreparedStatement from another cluster.
681- [improvement] JAVA-534: Log keyspace xxx does not exist at WARN level.
682- [improvement] JAVA-619: Allow Cluster subclasses to delegate to another instance.
683- [new feature] JAVA-669: Expose an API to check for schema agreement after a
684 schema-altering statement.
685- [improvement] JAVA-692: Make connection and pool creation fully async.
686- [improvement] JAVA-505: Optimize connection use after reconnection.
687- [improvement] JAVA-617: Remove "suspected" mechanism.
688- [improvement] reverts JAVA-425: Don't mark connection defunct on client timeout.
689- [new feature] JAVA-561: Speculative query executions.
690- [bug] JAVA-666: Release connection before completing the ResultSetFuture.
691- [new feature BETA] JAVA-723: Percentile-based variant of query logger and speculative
692 executions.
693- [bug] JAVA-734: Fix buffer leaks when compression is enabled.
694
695Merged from 2.0.9_fixes branch:
696
697- [bug] JAVA-614: Prevent race between cancellation and query completion.
698- [bug] JAVA-632: Prevent cancel and timeout from cancelling unrelated ResponseHandler if
699 streamId was already released and reused.
700- [bug] JAVA-642: Fix issue when newly opened pool fails before we could mark the node UP.
701- [bug] JAVA-613: Fix unwanted LBP notifications when a contact host is down.
702- [bug] JAVA-651: Fix edge cases where a connection was released twice.
703- [bug] JAVA-653: Fix edge cases in query cancellation.
704
705
706### 2.0.9.2
707
708- [bug] JAVA-651: Fix edge cases where a connection was released twice.
709- [bug] JAVA-653: Fix edge cases in query cancellation.
710
711
712### 2.0.9.1
713
714- [bug] JAVA-614: Prevent race between cancellation and query completion.
715- [bug] JAVA-632: Prevent cancel and timeout from cancelling unrelated ResponseHandler if
716 streamId was already released and reused.
717- [bug] JAVA-642: Fix issue when newly opened pool fails before we could mark the node UP.
718- [bug] JAVA-613: Fix unwanted LBP notifications when a contact host is down.
719
720
721### 2.0.9
722
723- [improvement] JAVA-538: Shade Netty dependency.
724- [improvement] JAVA-543: Target schema refreshes more precisely.
725- [bug] JAVA-546: Don't check rpc_address for control host.
726- [improvement] JAVA-409: Improve message of NoHostAvailableException.
727- [bug] JAVA-556: Rework connection reaper to avoid deadlock.
728- [bug] JAVA-557: Avoid deadlock when multiple connections to the same host get write
729 errors.
730- [improvement] JAVA-504: Make shuffle=true the default for TokenAwarePolicy.
731- [bug] JAVA-577: Fix bug when SUSPECT reconnection succeeds, but one of the pooled
732 connections fails while bringing the node back up.
733- [bug] JAVA-419: JAVA-587: Prevent faulty control connection from ignoring reconnecting hosts.
734- temporarily revert "Add idle timeout to the connection pool".
735- [bug] JAVA-593: Ensure updateCreatedPools does not add pools for suspected hosts.
736- [bug] JAVA-594: Ensure state change notifications for a given host are handled serially.
737- [bug] JAVA-597: Ensure control connection reconnects when control host is removed.
738
739
740### 2.0.8
741
742- [bug] JAVA-526: Fix token awareness for case-sensitive keyspaces and tables.
743- [bug] JAVA-515: Check maximum number of values passed to SimpleStatement.
744- [improvement] JAVA-532: Expose the driver version through the API.
745- [improvement] JAVA-522: Optimize session initialization when some hosts are not
746 responsive.
747
748
749### 2.0.7
750
751- [bug] JAVA-449: Handle null pool in PooledConnection.release.
752- [improvement] JAVA-425: Defunct connection on request timeout.
753- [improvement] JAVA-426: Try next host when we get a SERVER_ERROR.
754- [bug] JAVA-449, JAVA-460, JAVA-471: Handle race between query timeout and completion.
755- [bug] JAVA-496: Fix DCAwareRoundRobinPolicy datacenter auto-discovery.
756- [bug] JAVA-497: Ensure control connection does not trigger concurrent reconnects.
757- [improvement] JAVA-472: Keep trying to reconnect on authentication errors.
758- [improvement] JAVA-463: Expose close method on load balancing policy.
759- [improvement] JAVA-459: Allow load balancing policy to trigger refresh for a single host.
760- [bug] JAVA-493: Expose an API to cancel reconnection attempts.
761- [bug] JAVA-503: Fix NPE when a connection fails during pool construction.
762- [improvement] JAVA-423: Log datacenter name in DCAware policy's init when it is explicitly provided.
763- [improvement] JAVA-504: Shuffle the replicas in TokenAwarePolicy.newQueryPlan.
764- [improvement] JAVA-507: Make schema agreement wait tuneable.
765- [improvement] JAVA-494: Document how to inject the driver metrics into another registry.
766- [improvement] JAVA-419: Add idle timeout to the connection pool.
767- [bug] JAVA-516: LatencyAwarePolicy does not shutdown executor on invocation of close.
768- [improvement] JAVA-451: Throw an exception when DCAwareRoundRobinPolicy is built with
769 an explicit but null or empty local datacenter.
770- [bug] JAVA-511: Fix check for local contact points in DCAware policy's init.
771- [improvement] JAVA-457: Make timeout on saturated pool customizable.
772- [improvement] JAVA-521: Downgrade Guava to 14.0.1.
773
774
775### 2.0.6
776
777- [bug] JAVA-397: Check cluster name when connecting to a new node.
778- [bug] JAVA-326: Add missing CAS delete support in QueryBuilder.
779- [bug] JAVA-363: Add collection and data length checks during serialization.
780- [improvement] JAVA-329: Surface number of retries in metrics.
781- [bug] JAVA-428: Do not use a host when no rpc_address found for it.
782- [improvement] JAVA-358: Add ResultSet.wasApplied() for conditional queries.
783- [bug] JAVA-349: Fix negative HostConnectionPool open count.
784- [improvement] JAVA-436: Log more connection details at trace and debug levels.
785- [bug] JAVA-445: Fix cluster shutdown.
786- [improvement] JAVA-439: Expose child policy in chainable load balancing policies.
787
788
789### 2.0.5
790
791- [bug] JAVA-407: Release connections on ResultSetFuture#cancel.
792- [bug] JAVA-393: Fix handling of SimpleStatement with values in query builder
793 batches.
794- [bug] JAVA-417: Ensure pool is properly closed in onDown.
795- [bug] JAVA-415: Fix tokenMap initialization at startup.
796- [bug] JAVA-418: Avoid deadlock on close.
797
798
799### 2.0.4
800
801- [improvement] JAVA-204: Better handling of dead connections.
802- [bug] JAVA-373: Fix potential NPE in ControlConnection.
803- [bug] JAVA-291: Throws NPE when passed null for a contact point.
804- [bug] JAVA-315: Avoid LoadBalancingPolicy onDown+onUp at startup.
805- [bug] JAVA-343: Avoid classloader leak in Tomcat.
806- [bug] JAVA-387: Avoid deadlock in onAdd/onUp.
807- [bug] JAVA-377, JAVA-391: Make metadata parsing more lenient.
808- [bug] JAVA-394: Ensure defunct connections are completely closed.
809- [bug] JAVA-342, JAVA-390: Fix memory and resource leak on closed Sessions.
810
811
812### 2.0.3
813
814- [new] The new AbsractSession makes mocking of Session easier.
815- [new] JAVA-309: Allow to trigger a refresh of connected hosts.
816- [new] JAVA-265: New Session#getState method allows to grab information on
817 which nodes a session is connected to.
818- [new] JAVA-327: Add QueryBuilder syntax for tuples in where clauses (syntax
819 introduced in Cassandra 2.0.6).
820- [improvement] JAVA-359: Properly validate arguments of PoolingOptions methods.
821- [bug] JAVA-368: Fix bogus rejection of BigInteger in 'execute with values'.
822- [bug] JAVA-367: Signal connection failure sooner to avoid missing them.
823- [bug] JAVA-337: Throw UnsupportedOperationException for protocol batch
824 setSerialCL.
825
826Merged from 1.0 branch:
827
828- [bug] JAVA-325: Fix periodic reconnection to down hosts.
829
830
831### 2.0.2
832
833- [api] The type of the map key returned by NoHostAvailable#getErrors has changed from
834 InetAddress to InetSocketAddress. Same for Initializer#getContactPoints return and
835 for AuthProvider#newAuthenticator.
836- [api] JAVA-296: The default load balacing policy is now DCAwareRoundRobinPolicy, and the local
837 datacenter is automatically picked based on the first connected node. Furthermore,
838 the TokenAwarePolicy is also used by default.
839- [new] JAVA-145: New optional AddressTranslater.
840- [bug] JAVA-321: Don't remove quotes on keyspace in the query builder.
841- [bug] JAVA-320: Fix potential NPE while cluster undergo schema changes.
842- [bug] JAVA-319: Fix thread-safety of page fetching.
843- [bug] JAVA-318: Fix potential NPE using fetchMoreResults.
844
845Merged from 1.0 branch:
846
847- [new] JAVA-179: Expose the name of the partitioner in use in the cluster metadata.
848- [new] Add new WhiteListPolicy to limit the nodes connected to a particular list.
849- [improvement] JAVA-289: Do not hop DC for LOCAL_* CL in DCAwareRoundRobinPolicy.
850- [bug] JAVA-313: Revert back to longs for dates in the query builder.
851- [bug] JAVA-314: Don't reconnect to nodes ignored by the load balancing policy.
852
853
854### 2.0.1
855
856- [improvement] JAVA-278: Handle the static columns introduced in Cassandra 2.0.6.
857- [improvement] JAVA-208: Add Cluster#newSession method to create Session without connecting
858 right away.
859- [bug] JAVA-279: Add missing iso8601 patterns for parsing dates.
860- [bug] Properly parse BytesType as the blob type.
861- [bug] JAVA-280: Potential NPE when parsing schema of pre-CQL tables of C* 1.2 nodes.
862
863Merged from 1.0 branch:
864
865- [bug] JAVA-275: LatencyAwarePolicy.Builder#withScale doesn't set the scale.
866- [new] JAVA-114: Add methods to check if a Cluster/Session instance has been closed already.
867
868
869### 2.0.0
870
871- [api] JAVA-269: Case sensitive identifier by default in Metadata.
872- [bug] JAVA-274: Fix potential NPE in Cluster#connect.
873
874Merged from 1.0 branch:
875
876- [bug] JAVA-263: Always return the PreparedStatement object that is cache internally.
877- [bug] JAVA-261: Fix race when multiple connect are done in parallel.
878- [bug] JAVA-270: Don't connect at all to nodes that are ignored by the load balancing
879 policy.
880
881
882### 2.0.0-rc3
883
884- [improvement] The protocol version 1 is now supported (features only supported by the
885 version 2 of the protocol throw UnsupportedFeatureException).
886- [improvement] JAVA-195: Make most main objects interface to facilitate testing/mocking.
887- [improvement] Adds new getStatements and clear methods to BatchStatement.
888- [api] JAVA-247: Renamed shutdown to closeAsync and ShutdownFuture to CloseFuture. Clustering
889 and Session also now implement Closeable.
890- [bug] JAVA-232: Fix potential thread leaks when shutting down Metrics.
891- [bug] JAVA-231: Fix potential NPE in HostConnectionPool.
892- [bug] JAVA-244: Avoid NPE when node is in an unconfigured DC.
893- [bug] JAVA-258: Don't block for scheduled reconnections on Cluster#close.
894
895Merged from 1.0 branch:
896
897- [new] JAVA-224: Added Session#prepareAsync calls.
898- [new] JAVA-249: Added Cluster#getLoggedKeyspace.
899- [improvement] Avoid preparing a statement multiple time per host with multiple sessions.
900- [bug] JAVA-255: Make sure connections are returned to the right pools.
901- [bug] JAVA-264: Use date string in query build to work-around CASSANDRA-6718.
902
903
904### 2.0.0-rc2
905
906- [new] JAVA-207: Add LOCAL_ONE consistency level support (requires using C* 2.0.2+).
907- [bug] JAVA-219: Fix parsing of counter types.
908- [bug] JAVA-218: Fix missing whitespace for IN clause in the query builder.
909- [bug] JAVA-221: Fix replicas computation for token aware balancing.
910
911Merged from 1.0 branch:
912
913- [bug] JAVA-213: Fix regression from JAVA-201.
914- [improvement] New getter to obtain a snapshot of the scores maintained by
915 LatencyAwarePolicy.
916
917
918### 2.0.0-rc1
919
920- [new] JAVA-199: Mark compression dependencies optional in maven.
921- [api] Renamed TableMetadata#getClusteringKey to TableMetadata#getClusteringColumns.
922
923Merged from 1.0 branch:
924
925- [new] JAVA-142: OSGi bundle.
926- [improvement] JAVA-205: Make collections returned by Row immutable.
927- [improvement] JAVA-203: Limit internal thread pool size.
928- [bug] JAVA-201: Don't retain unused PreparedStatement in memory.
929- [bug] Add missing clustering order info in TableMetadata
930- [bug] JAVA-196: Allow bind markers for collections in the query builder.
931
932
933### 2.0.0-beta2
934
935- [api] BoundStatement#setX(String, X) methods now set all values (if there is
936 more than one) having the provided name, not just the first occurence.
937- [api] The Authenticator interface now has a onAuthenticationSuccess method that
938 allows to handle the potential last token sent by the server.
939- [new] The query builder don't serialize large values to strings anymore by
940 default by making use the new ability to send values alongside the query string.
941- [new] JAVA-140: The query builder has been updated for new CQL features.
942- [bug] Fix exception when a conditional write timeout C* side.
943- [bug] JAVA-182: Ensure connection is created when Cluster metadata are asked for.
944- [bug] JAVA-187: Fix potential NPE during authentication.
945
946
947### 2.0.0-beta1
948
949- [api] The 2.0 version is an API-breaking upgrade of the driver. While most
950 of the breaking changes are minor, there are too numerous to be listed here
951 and you are encouraged to look at the Upgrade_guide_to_2.0 file that describe
952 those changes in details.
953- [new] LZ4 compression is supported for the protocol.
954- [new] JAVA-39: The driver does not depend on cassandra-all anymore.
955- [new] New BatchStatement class allows to execute batch other statements.
956- [new] Large ResultSet are now paged (incrementally fetched) by default.
957- [new] SimpleStatement support values for bind-variables, to allow
958 prepare+execute behavior with one roundtrip.
959- [new] Query parameters defaults (Consistency level, page size, ...) can be
960 configured globally.
961- [new] New Cassandra 2.0 SERIAL and LOCAL_SERIAL consistency levels are
962 supported.
963- [new] JAVA-116: Cluster#shutdown now waits for ongoing queries to complete by default.
964- [new] Generic authentication through SASL is now exposed.
965- [bug] JAVA-88: TokenAwarePolicy now takes all replica into account, instead of only the
966 first one.
967
968
969### 1.0.5
970
971- [new] JAVA-142: OSGi bundle.
972- [new] JAVA-207: Add support for ConsistencyLevel.LOCAL_ONE; note that this
973 require Cassandra 1.2.12+.
974- [improvement] JAVA-205: Make collections returned by Row immutable.
975- [improvement] JAVA-203: Limit internal thread pool size.
976- [improvement] New getter to obtain a snapshot of the scores maintained by
977 LatencyAwarePolicy.
978- [improvement] JAVA-222: Avoid synchronization when getting codec for collection
979 types.
980- [bug] JAVA-201, JAVA-213: Don't retain unused PreparedStatement in memory.
981- [bug] Add missing clustering order info in TableMetadata
982- [bug] JAVA-196: Allow bind markers for collections in the query builder.
983
984
985### 1.0.4
986
987- [api] JAVA-163: The Cluster.Builder#poolingOptions and Cluster.Builder#socketOptions
988 are now deprecated. They are replaced by the new withPoolingOptions and
989 withSocketOptions methods.
990- [new] JAVA-129: A new LatencyAwarePolicy wrapping policy has been added, allowing to
991 add latency awareness to a wrapped load balancing policy.
992- [new] JAVA-161: Cluster.Builder#deferInitialization: Allow defering cluster initialization.
993- [new] JAVA-117: Add truncate statement in query builder.
994- [new] JAVA-106: Support empty IN in the query builder.
995- [bug] JAVA-166: Fix spurious "No current pool set; this should not happen" error
996 message.
997- [bug] JAVA-184: Fix potential overflow in RoundRobinPolicy and correctly errors if
998 a balancing policy throws.
999- [bug] Don't release Stream ID for timeouted queries (unless we do get back
1000 the response)
1001- [bug] Correctly escape identifiers and use fully qualified table names when
1002 exporting schema as string.
1003
1004
1005### 1.0.3
1006
1007- [api] The query builder now correctly throw an exception when given a value
1008 of a type it doesn't know about.
1009- [new] SocketOptions#setReadTimeout allows to set a timeout on how long we
1010 wait for the answer of one node. See the javadoc for more details.
1011- [new] New Session#prepare method that takes a Statement.
1012- [bug] JAVA-143: Always take per-query CL, tracing, etc. into account for QueryBuilder
1013 statements.
1014- [bug] Temporary fixup for TimestampType when talking to C* 2.0 nodes.
1015
1016
1017### 1.0.2
1018
1019- [api] Host#getMonitor and all Host.HealthMonitor methods have been
1020 deprecated. The new Host#isUp method is now prefered to the method
1021 in the monitor and you should now register Host.StateListener against
1022 the Cluster object directly (registering against a host HealthMonitor
1023 was much more limited anyway).
1024- [new] JAVA-92: New serialize/deserialize methods in DataType to serialize/deserialize
1025 values to/from bytes.
1026- [new] JAVA-128: New getIndexOf() method in ColumnDefinitions to find the index of
1027 a given column name.
1028- [bug] JAVA-131: Fix a bug when thread could get blocked while setting the current
1029 keyspace.
1030- [bug] JAVA-136: Quote inet addresses in the query builder since CQL3 requires it.
1031
1032
1033### 1.0.1
1034
1035- [api] JAVA-100: Function call handling in the query builder has been modified in a
1036 backward incompatible way. Function calls are not parsed from string values
1037 anymore as this wasn't safe. Instead the new 'fcall' method should be used.
1038- [api] Some typos in method names in PoolingOptions have been fixed in a
1039 backward incompatible way before the API get widespread.
1040- [bug] JAVA-123: Don't destroy composite partition key with BoundStatement and
1041 TokenAwarePolicy.
1042- [new] null values support in the query builder.
1043- [new] JAVA-5: SSL support (requires C* >= 1.2.1).
1044- [new] JAVA-113: Allow generating unlogged batch in the query builder.
1045- [improvement] Better error message when no host are available.
1046- [improvement] Improves performance of the stress example application been.
1047
1048
1049### 1.0.0
1050
1051- [api] The AuthInfoProvider has be (temporarily) removed. Instead, the
1052 Cluster builder has a new withCredentials() method to provide a username
1053 and password for use with Cassandra's PasswordAuthenticator. Custom
1054 authenticator will be re-introduced in a future version but are not
1055 supported at the moment.
1056- [api] The isMetricsEnabled() method in Configuration has been replaced by
1057 getMetricsOptions(). An option to disabled JMX reporting (on by default)
1058 has been added.
1059- [bug] JAVA-91: Don't make default load balancing policy a static singleton since it
1060 is stateful.
1061
1062
1063### 1.0.0-RC1
1064
1065- [new] JAVA-79: Null values are now supported in BoundStatement (but you will need at
1066 least Cassandra 1.2.3 for it to work). The API of BoundStatement has been
1067 slightly changed so that not binding a variable is not an error anymore,
1068 the variable is simply considered null by default. The isReady() method has
1069 been removed.
1070- [improvement] JAVA-75: The Cluster/Session shutdown methods now properly block until
1071 the shutdown is complete. A version with at timeout has been added.
1072- [bug] JAVA-44: Fix use of CQL3 functions in the query builder.
1073- [bug] JAVA-77: Fix case where multiple schema changes too quickly wouldn't work
1074 (only triggered when 0.0.0.0 was used for the rpc_address on the Cassandra
1075 nodes).
1076- [bug] JAVA-72: Fix IllegalStateException thrown due to a reconnection made on an I/O
1077 thread.
1078- [bug] JAVA-82: Correctly reports errors during authentication phase.
1079
1080
1081### 1.0.0-beta2
1082
1083- [new] JAVA-51, JAVA-60, JAVA-58: Support blob constants, BigInteger, BigDecimal and counter batches in
1084 the query builder.
1085- [new] JAVA-61: Basic support for custom CQL3 types.
1086- [new] JAVA-65: Add "execution infos" for a result set (this also move the query
1087 trace in the new ExecutionInfos object, so users of beta1 will have to
1088 update).
1089- [bug] JAVA-62: Fix failover bug in DCAwareRoundRobinPolicy.
1090- [bug] JAVA-66: Fix use of bind markers for routing keys in the query builder.
1091
1092
1093### 1.0.0-beta1
1094
1095- initial release