Elffuss BraidHub

kikocis/java-driver public

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