Elffuss BraidHub

kikocis/java-driver public

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