Elffuss BraidHub

kikocis/java-driver public

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