Elffuss BraidHub

kikocis/java-driver public

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