Elffuss BraidHub

kikocis/java-driver public

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