Elffuss BraidHub

kikocis/java-driver public

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