Elffuss BraidHub

kikocis/java-driver public

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