Elffuss BraidHub

kikocis/java-driver public

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