Elffuss BraidHub

kikocis/java-driver public

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