Elffuss BraidHub

kikocis/java-driver public

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