Elffuss BraidHub

kikocis/java-driver public

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