Elffuss BraidHub

kikocis/java-driver public

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