Elffuss BraidHub

kikocis/java-driver public

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