Elffuss BraidHub

kikocis/java-driver public

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