Elffuss BraidHub

kikocis/java-driver public

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