Elffuss BraidHub

kikocis/java-driver public

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