Elffuss BraidHub

kikocis/java-driver public

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