Elffuss BraidHub

kikocis/java-driver public

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