Elffuss BraidHub

kikocis/java-driver public

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