Elffuss BraidHub

kikocis/java-driver public

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