Elffuss BraidHub

kikocis/java-driver public

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