Elffuss BraidHub

kikocis/java-driver public

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