Elffuss BraidHub

kikocis/java-driver public

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