Elffuss BraidHub

kikocis/java-driver public

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