Elffuss BraidHub

kikocis/java-driver public

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