Elffuss BraidHub

kikocis/java-driver public

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