Elffuss BraidHub

kikocis/java-driver public

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