Elffuss BraidHub

kikocis/java-driver public

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