Elffuss BraidHub

kikocis/java-driver public

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