Elffuss BraidHub

kikocis/java-driver public

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