Elffuss BraidHub

kikocis/java-driver public

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