Elffuss BraidHub

kikocis/java-driver public

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