Elffuss BraidHub

kikocis/java-driver public

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