Elffuss BraidHub

kikocis/java-driver public

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